Home | History | Annotate | Download | only in ip

Lines Matching defs:host_len

146 static int filter_nlmsg(struct nlmsghdr *n, struct rtattr **tb, int host_len)
228 memcpy(&via.data, RTA_DATA(tb[RTA_GATEWAY]), host_len/8);
239 memcpy(&prefsrc.data, RTA_DATA(tb[RTA_PREFSRC]), host_len/8);
320 int host_len, family;
340 host_len = af_bit_len(r->rtm_family);
345 if (!filter_nlmsg(n, tb, host_len))
374 if (r->rtm_dst_len != host_len) {
389 if (r->rtm_src_len != host_len) {
413 if (tb[RTA_GATEWAY] && filter.rvia.bitlen != host_len) {
436 if (tb[RTA_PREFSRC] && filter.rprefsrc.bitlen != host_len) {
1361 int host_len;
1363 host_len = af_bit_len(r->rtm_family);
1367 if (!filter_nlmsg(n, tb, host_len))