Home
last modified time | relevance | path

Searched refs:rtm_family (Results 1 – 13 of 13) sorted by relevance

/external/iproute2/ip/
Diproute.c152 if (preferred_family != AF_UNSPEC && r->rtm_family != preferred_family) in filter_nlmsg()
155 if (r->rtm_family == AF_INET6 && table != RT_TABLE_MAIN) in filter_nlmsg()
161 if (r->rtm_family == AF_INET6 && !ip6_multiple_tables) { in filter_nlmsg()
186 (r->rtm_family != filter.rdst.family || filter.rdst.bitlen > r->rtm_dst_len)) in filter_nlmsg()
189 (r->rtm_family != filter.mdst.family || in filter_nlmsg()
193 (r->rtm_family != filter.rsrc.family || filter.rsrc.bitlen > r->rtm_src_len)) in filter_nlmsg()
196 (r->rtm_family != filter.msrc.family || in filter_nlmsg()
200 int family = r->rtm_family; in filter_nlmsg()
208 if (filter.rprefsrc.family && r->rtm_family != filter.rprefsrc.family) in filter_nlmsg()
212 dst.family = r->rtm_family; in filter_nlmsg()
[all …]
Diprule.c70 host_len = af_bit_len(r->rtm_family); in print_rule()
85 fprintf(fp, "from %s/%u ", rt_addr_n2a(r->rtm_family, in print_rule()
92 fprintf(fp, "from %s ", format_host(r->rtm_family, in print_rule()
106 fprintf(fp, "to %s/%u ", rt_addr_n2a(r->rtm_family, in print_rule()
113 fprintf(fp, "to %s ", format_host(r->rtm_family, in print_rule()
199 format_host(r->rtm_family, in print_rule()
348 req.r.rtm_family = preferred_family; in iprule_modify()
366 get_prefix(&dst, *argv, req.r.rtm_family); in iprule_modify()
372 get_prefix(&dst, *argv, req.r.rtm_family); in iprule_modify()
483 if (req.r.rtm_family == AF_UNSPEC) in iprule_modify()
[all …]
Dipmroute.c97 if (filter.af && filter.af != r->rtm_family) in print_mroute()
104 dst.family = r->rtm_family; in print_mroute()
114 src.family = r->rtm_family; in print_mroute()
120 family = r->rtm_family == RTNL_FAMILY_IPMR ? AF_INET : AF_INET6; in print_mroute()
Dipmonitor.c75 if (r->rtm_family == RTNL_FAMILY_IPMR || in accept_msg()
76 r->rtm_family == RTNL_FAMILY_IP6MR) { in accept_msg()
/external/toybox/toys/pending/
Dip.c1469 int hlen = ((msg->rtm_family == AF_INET) ? 32 in display_route_info()
1470 : ((msg->rtm_family == AF_INET6) ? 128 : -1)); in display_route_info()
1475 if (msg->rtm_family == AF_INET6) { in display_route_info()
1493 if (gfilter.rdst.family && (msg->rtm_family != gfilter.rdst.family || in display_route_info()
1495 if (gfilter.mdst.family && (msg->rtm_family != gfilter.mdst.family in display_route_info()
1497 if (gfilter.rsrc.family && (msg->rtm_family != gfilter.rsrc.family in display_route_info()
1499 if (gfilter.msrc.family && (msg->rtm_family != gfilter.msrc.family in display_route_info()
1509 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_DST]), in display_route_info()
1523 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_SRC]), in display_route_info()
1536 inetval = (char *)inet_ntop(msg->rtm_family, RTA_DATA(attr[RTA_GATEWAY]), in display_route_info()
[all …]
/external/libnl/src/
Dnl-route-get.c63 .rtm_family = nl_addr_get_family(dst), in main()
/external/libnl/lib/route/
Droute.c48 .rtm_family = c->c_iarg1, in route_request_update()
Drule.c101 rule->r_family = family = r->rtm_family; in rule_msg_parser()
398 rtm.rtm_family = tmpl->r_family; in build_rule_msg()
Droute_obj.c933 route->rt_family = family = rtm->rtm_family; in rtnl_route_parse()
952 nl_addr_set_family(dst, rtm->rtm_family); in rtnl_route_parse()
1084 .rtm_family = route->rt_family, in rtnl_route_build_msg()
/external/dhcpcd-6.8.2/
Dif-linux.c408 if (rtm->rtm_table != RT_TABLE_MAIN || rtm->rtm_family != AF_INET) in if_copyrt()
473 if (rtm->rtm_table != RT_TABLE_MAIN || rtm->rtm_family != AF_INET6) in if_copyrt6()
560 switch (rtm->rtm_family) { in link_route()
1341 nlm.rt.rtm_family = AF_INET; in if_route()
1413 nlm.rt.rtm_family = AF_INET; in if_initrt()
1541 nlm.rt.rtm_family = AF_INET6; in if_route6()
1615 nlm.rt.rtm_family = AF_INET6; in if_initrt6()
/external/libnl/include/linux/
Drtnetlink.h153 unsigned char rtm_family; member
/external/kernel-headers/original/uapi/linux/
Drtnetlink.h183 unsigned char rtm_family; member
/external/iproute2/include/linux/
Drtnetlink.h183 unsigned char rtm_family; member