Home
last modified time | relevance | path

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

12

/external/iproute2/ip/
Diproute.c170 if (r->rtm_type != RTN_LOCAL) in filter_nlmsg()
173 if (r->rtm_type == RTN_LOCAL) in filter_nlmsg()
188 if (filter.typemask && !(filter.typemask & (1 << r->rtm_type))) in filter_nlmsg()
293 r->rtm_type == RTN_UNREACHABLE && in filter_nlmsg()
368 if ((r->rtm_type != RTN_UNICAST || show_details > 0) && in print_route()
369 (!filter.typemask || (filter.typemask & (1 << r->rtm_type)))) in print_route()
370 fprintf(fp, "%s ", rtnl_rtntype_n2a(r->rtm_type, b1, sizeof(b1))); 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()
636 if (r->rtm_flags&RTM_F_CLONED && r->rtm_type == RTN_MULTICAST) { in print_route()
[all …]
Diprule.c314 if (r->rtm_type == RTN_NAT) { in print_rule()
321 } else if (r->rtm_type == FR_ACT_GOTO) { in print_rule()
329 } else if (r->rtm_type == FR_ACT_NOP) in print_rule()
331 else if (r->rtm_type != RTN_UNICAST) in print_rule()
333 rtnl_rtntype_n2a(r->rtm_type, in print_rule()
590 .r.rtm_type = RTN_UNSPEC, in iprule_modify()
595 req.r.rtm_type = RTN_UNICAST; in iprule_modify()
728 req.r.rtm_type = RTN_NAT; in iprule_modify()
750 req.r.rtm_type = type; in iprule_modify()
Dipmroute.c79 if (r->rtm_type != RTN_MULTICAST) { in print_mroute()
81 rtnl_rtntype_n2a(r->rtm_type, b1, sizeof(b1))); in print_mroute()
115 family = get_real_family(r->rtm_type, r->rtm_family); in print_mroute()
/external/toybox/toys/pending/
Dip.c1481 if (gfilter.tb == RT_TABLE_LOCAL && msg->rtm_type != RTN_LOCAL) in display_route_info()
1483 else if (gfilter.tb == RT_TABLE_MAIN && msg->rtm_type == RTN_LOCAL) in display_route_info()
1506 if (msg->rtm_type != RTN_UNICAST) in display_route_info()
1507 sprintf(out,"%s%s ", out,rtmtype_idx2str(msg->rtm_type)); in display_route_info()
1608 && msg->rtm_type == RTN_UNREACHABLE in display_route_info()
1921 req.msg.rtm_type = RTN_UNICAST; in route_update()
1979 req.msg.rtm_type = idx; in route_update()
2004 if (req.msg.rtm_type == RTN_LOCAL || req.msg.rtm_type == RTN_NAT) in route_update()
2006 else if (req.msg.rtm_type == RTN_BROADCAST||req.msg.rtm_type == RTN_MULTICAST in route_update()
2007 || req.msg.rtm_type == RTN_ANYCAST) in route_update()
[all …]
/external/strace/tests/
Dnetlink_route.c258 .rtm_type = RTN_LOCAL, in test_rtnl_route()
285 .rtm_type = FR_ACT_TO_TBL, in test_rtnl_rule()
Dnlattr_fib_rule_hdr.c70 .rtm_type = FR_ACT_TO_TBL, in init_rtmsg()
Dnlattr_rtmsg.c57 .rtm_type = RTN_LOCAL, in init_rtmsg()
/external/strace/tests-m32/
Dnetlink_route.c258 .rtm_type = RTN_LOCAL, in test_rtnl_route()
285 .rtm_type = FR_ACT_TO_TBL, in test_rtnl_rule()
Dnlattr_fib_rule_hdr.c70 .rtm_type = FR_ACT_TO_TBL, in init_rtmsg()
Dnlattr_rtmsg.c57 .rtm_type = RTN_LOCAL, in init_rtmsg()
/external/strace/tests-mx32/
Dnetlink_route.c258 .rtm_type = RTN_LOCAL, in test_rtnl_route()
285 .rtm_type = FR_ACT_TO_TBL, in test_rtnl_rule()
Dnlattr_fib_rule_hdr.c70 .rtm_type = FR_ACT_TO_TBL, in init_rtmsg()
Dnlattr_rtmsg.c57 .rtm_type = RTN_LOCAL, in init_rtmsg()
/external/strace/
Drtnl_rule.c154 printxval(fib_rule_actions, msg.rtm_type, "FR_ACT_???"); in DECL_NETLINK_ROUTE_DECODER()
Drtnl_route.c314 PRINT_FIELD_XVAL(", ", rtmsg, rtm_type, in DECL_NETLINK_ROUTE_DECODER()
/external/ipsec-tools/src/racoon/
Dgrabmyaddr.c686 switch (rtm->rtm_type) { in update_myaddrs()
697 "msg %d not interesting\n", rtm->rtm_type); in update_myaddrs()
704 rtm->rtm_type); in update_myaddrs()
/external/syzkaller/sys/linux/
Dsocket_netlink_route.txt116 rtm_type flags[rtm_type, int8]
127 ndm_type flags[rtm_type, int8]
615 rtm_type = RTN_UNSPEC, RTN_UNICAST, RTN_LOCAL, RTN_BROADCAST, RTN_ANYCAST, RTN_MULTICAST, RTN_BLACK…
/external/dnsmasq/src/
Dnetlink.c254 if (rtm->rtm_type != RTN_UNICAST || rtm->rtm_scope != RT_SCOPE_LINK) return; in nl_routechange()
/external/iproute2/include/
Dutils.h253 int get_real_family(int rtm_type, int rtm_family);
/external/libnl/include/linux-private/linux/
Drtnetlink.h172 unsigned char rtm_type; /* See below */ member
/external/iproute2/lib/
Dutils.c1268 int get_real_family(int rtm_type, int rtm_family) in get_real_family() argument
1270 if (rtm_type != RTN_MULTICAST) in get_real_family()
/external/iproute2/include/uapi/linux/
Drtnetlink.h202 unsigned char rtm_type; /* See below */ member
/external/kernel-headers/original/uapi/linux/
Drtnetlink.h209 unsigned char rtm_type; /* See below */ member
/external/libnl/lib/route/
Droute_obj.c1032 route->rt_type = rtm->rtm_type; in rtnl_route_parse()
1190 .rtm_type = route->rt_type, in rtnl_route_build_msg()
/external/linux-kselftest/tools/testing/selftests/net/
Dudpgso.c399 rt->rtm_type = RTN_UNICAST; in set_route_mtu()

12