• Home
  • Raw
  • Download

Lines Matching refs:rtm_family

149 	inet_prefix dst = { .family = r->rtm_family };  in filter_nlmsg()
150 inet_prefix src = { .family = r->rtm_family }; in filter_nlmsg()
151 inet_prefix via = { .family = r->rtm_family }; in filter_nlmsg()
152 inet_prefix prefsrc = { .family = r->rtm_family }; in filter_nlmsg()
158 if (preferred_family != AF_UNSPEC && r->rtm_family != preferred_family) in filter_nlmsg()
161 if (r->rtm_family == AF_INET6 && table != RT_TABLE_MAIN) in filter_nlmsg()
167 if (r->rtm_family == AF_INET6 && !ip6_multiple_tables) { in filter_nlmsg()
193 (r->rtm_family != filter.rdst.family || filter.rdst.bitlen > r->rtm_dst_len)) in filter_nlmsg()
196 (r->rtm_family != filter.mdst.family || in filter_nlmsg()
200 (r->rtm_family != filter.rsrc.family || filter.rsrc.bitlen > r->rtm_src_len)) in filter_nlmsg()
203 (r->rtm_family != filter.msrc.family || in filter_nlmsg()
207 int family = r->rtm_family; in filter_nlmsg()
217 if (filter.rprefsrc.family && r->rtm_family != filter.rprefsrc.family) in filter_nlmsg()
291 r->rtm_family == AF_INET6 && in filter_nlmsg()
340 host_len = af_bit_len(r->rtm_family); in print_route()
373 family = get_real_family(r->rtm_type, r->rtm_family); in print_route()
388 family = get_real_family(r->rtm_type, r->rtm_family); in print_route()
402 format_host_rta(r->rtm_family, tb[RTA_NEWDST])); in print_route()
415 format_host_rta(r->rtm_family, tb[RTA_GATEWAY])); in print_route()
441 rt_addr_n2a_rta(r->rtm_family, tb[RTA_PREFSRC])); in print_route()
487 if ((r->rtm_flags&RTM_F_CLONED) && r->rtm_family == AF_INET) { in print_route()
537 } else if (r->rtm_family == AF_INET6) { in print_route()
654 format_host_rta(r->rtm_family, in print_route()
659 format_host_rta(r->rtm_family, in print_route()
691 if (r->rtm_family != AF_MPLS) in print_route()
755 family = r->rtm_family; in parse_one_nh()
759 if (r->rtm_family == AF_UNSPEC) in parse_one_nh()
760 r->rtm_family = addr.family; in parse_one_nh()
761 if (addr.family == r->rtm_family) { in parse_one_nh()
802 get_addr(&addr, *argv, r->rtm_family); in parse_one_nh()
856 .r.rtm_family = preferred_family, in iproute_modify()
886 get_addr(&addr, *argv, req.r.rtm_family); in iproute_modify()
887 if (req.r.rtm_family == AF_UNSPEC) in iproute_modify()
888 req.r.rtm_family = addr.family; in iproute_modify()
897 get_addr(&addr, *argv, req.r.rtm_family); in iproute_modify()
898 if (req.r.rtm_family == AF_UNSPEC) in iproute_modify()
899 req.r.rtm_family = addr.family; in iproute_modify()
913 family = req.r.rtm_family; in iproute_modify()
917 if (req.r.rtm_family == AF_UNSPEC) in iproute_modify()
918 req.r.rtm_family = addr.family; in iproute_modify()
919 if (addr.family == req.r.rtm_family) in iproute_modify()
929 get_prefix(&addr, *argv, req.r.rtm_family); in iproute_modify()
930 if (req.r.rtm_family == AF_UNSPEC) in iproute_modify()
931 req.r.rtm_family = addr.family; in iproute_modify()
1237 get_prefix(&dst, *argv, req.r.rtm_family); in iproute_modify()
1238 if (req.r.rtm_family == AF_UNSPEC) in iproute_modify()
1239 req.r.rtm_family = dst.family; in iproute_modify()
1270 if (req.r.rtm_family == AF_UNSPEC) in iproute_modify()
1271 req.r.rtm_family = AF_INET; in iproute_modify()
1281 if (req.r.rtm_family == AF_INET6 || in iproute_modify()
1282 req.r.rtm_family == AF_MPLS) in iproute_modify()
1300 if (!type_ok && req.r.rtm_family == AF_MPLS) in iproute_modify()
1319 .rtm.rtm_family = family, in rtnl_rtcache_request()
1363 host_len = af_bit_len(r->rtm_family); in save_route()
1679 .r.rtm_family = preferred_family, in iproute_get()
1707 get_prefix(&addr, *argv, req.r.rtm_family); in iproute_get()
1708 if (req.r.rtm_family == AF_UNSPEC) in iproute_get()
1709 req.r.rtm_family = addr.family; in iproute_get()
1748 get_addr(&addr, *argv, req.r.rtm_family); in iproute_get()
1749 if (req.r.rtm_family == AF_UNSPEC) in iproute_get()
1750 req.r.rtm_family = addr.family; in iproute_get()
1760 get_prefix(&addr, *argv, req.r.rtm_family); in iproute_get()
1761 if (req.r.rtm_family == AF_UNSPEC) in iproute_get()
1762 req.r.rtm_family = addr.family; in iproute_get()
1796 if (req.r.rtm_family == AF_UNSPEC) in iproute_get()
1797 req.r.rtm_family = AF_INET; in iproute_get()