Home
last modified time | relevance | path

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

12

/external/iproute2/ip/
Diproute.c149 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()
[all …]
Diprule.c80 inet_prefix src = { .family = r->rtm_family }; in filter_nlmsg()
81 inet_prefix dst = { .family = r->rtm_family }; in filter_nlmsg()
84 if (preferred_family != AF_UNSPEC && r->rtm_family != preferred_family) in filter_nlmsg()
98 if (filter.src.family != r->rtm_family || in filter_nlmsg()
109 if (filter.dst.family != r->rtm_family || in filter_nlmsg()
192 host_len = af_bit_len(r->rtm_family); in print_rule()
212 rt_addr_n2a_rta(r->rtm_family, tb[FRA_SRC]), in print_rule()
216 format_host_rta(r->rtm_family, tb[FRA_SRC])); in print_rule()
227 rt_addr_n2a_rta(r->rtm_family, tb[FRA_DST]), in print_rule()
231 format_host_rta(r->rtm_family, tb[FRA_DST])); in print_rule()
[all …]
Dipmroute.c96 if (filter.af && filter.af != r->rtm_family) in print_mroute()
100 inet_prefix dst = { .family = r->rtm_family }; in print_mroute()
108 inet_prefix src = { .family = r->rtm_family }; in print_mroute()
115 family = get_real_family(r->rtm_type, r->rtm_family); in print_mroute()
Dipmonitor.c74 if (r->rtm_family == RTNL_FAMILY_IPMR || in accept_msg()
75 r->rtm_family == RTNL_FAMILY_IP6MR) { in accept_msg()
/external/strace/
Drtnl_rule.c54 decode_inet_addr(tcp, addr, len, rtmsg->rtm_family, NULL); in decode_rule_addr()
134 struct rtmsg msg = { .rtm_family = family }; in DECL_NETLINK_ROUTE_DECODER()
135 size_t offset = sizeof(msg.rtm_family); in DECL_NETLINK_ROUTE_DECODER()
139 printxval(addrfams, msg.rtm_family, "AF_???"); in DECL_NETLINK_ROUTE_DECODER()
Drtnl_route.c87 decode_inet_addr(tcp, addr, len, rtmsg->rtm_family, NULL); in decode_route_addr()
293 struct rtmsg rtmsg = { .rtm_family = family }; in DECL_NETLINK_ROUTE_DECODER()
294 size_t offset = sizeof(rtmsg.rtm_family); in DECL_NETLINK_ROUTE_DECODER()
297 PRINT_FIELD_XVAL("{", rtmsg, rtm_family, addrfams, "AF_???"); in DECL_NETLINK_ROUTE_DECODER()
/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/iproute2/lib/
Dutils.c1268 int get_real_family(int rtm_type, int rtm_family) in get_real_family() argument
1271 return rtm_family; in get_real_family()
1273 if (rtm_family == RTNL_FAMILY_IPMR) in get_real_family()
1276 if (rtm_family == RTNL_FAMILY_IP6MR) in get_real_family()
1279 return rtm_family; in get_real_family()
/external/libnl/src/
Dnl-route-get.c63 .rtm_family = nl_addr_get_family(dst), in main()
/external/strace/tests/
Dnetlink_route.c251 .rtm_family = AF_UNIX, in test_rtnl_route()
280 .rtm_family = AF_UNIX, in test_rtnl_rule()
Dnlattr_fib_rule_hdr.c67 .rtm_family = AF_UNIX, in init_rtmsg()
Dnlattr_rtmsg.c52 .rtm_family = AF_UNIX, in init_rtmsg()
/external/strace/tests-m32/
Dnetlink_route.c251 .rtm_family = AF_UNIX, in test_rtnl_route()
280 .rtm_family = AF_UNIX, in test_rtnl_rule()
Dnlattr_fib_rule_hdr.c67 .rtm_family = AF_UNIX, in init_rtmsg()
Dnlattr_rtmsg.c52 .rtm_family = AF_UNIX, in init_rtmsg()
/external/strace/tests-mx32/
Dnetlink_route.c251 .rtm_family = AF_UNIX, in test_rtnl_route()
280 .rtm_family = AF_UNIX, in test_rtnl_rule()
Dnlattr_fib_rule_hdr.c67 .rtm_family = AF_UNIX, in init_rtmsg()
Dnlattr_rtmsg.c52 .rtm_family = AF_UNIX, in init_rtmsg()
/external/libnl/lib/route/
Droute.c48 .rtm_family = c->c_iarg1, in route_request_update()
Droute_obj.c1029 route->rt_family = family = rtm->rtm_family; in rtnl_route_parse()
1049 nl_addr_set_family(dst, rtm->rtm_family); in rtnl_route_parse()
1185 .rtm_family = route->rt_family, in rtnl_route_build_msg()
/external/iproute2/include/
Dutils.h253 int get_real_family(int rtm_type, int rtm_family);
/external/libnl/include/linux-private/linux/
Drtnetlink.h164 unsigned char rtm_family; member
/external/iproute2/include/uapi/linux/
Drtnetlink.h194 unsigned char rtm_family; member
/external/kernel-headers/original/uapi/linux/
Drtnetlink.h201 unsigned char rtm_family; member
/external/linux-kselftest/tools/testing/selftests/net/
Dudpgso.c394 rt->rtm_family = is_ipv4 ? AF_INET : AF_INET6; in set_route_mtu()

12