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/dhcpcd-6.8.2/
Dif-bsd.c585 rtm.hdr.rtm_type = cmd; in if_route()
972 rtm.hdr.rtm_type = cmd; in if_route6()
975 if (rtm.hdr.rtm_type != RTM_ADD) in if_route6()
1179 switch(rtm->rtm_type) { in if_managelink()
1230 ipv4_handlert(ctx, rtm->rtm_type, &rt); in if_managelink()
1256 rtm->rtm_type != RTM_DELETE && in if_managelink()
1263 ipv6_handlert(ctx, rtm->rtm_type, &rt6); in if_managelink()
1284 if (rtm->rtm_type != RTM_CHGADDR) in if_managelink()
1287 if (rtm->rtm_type != RTM_NEWADDR) in if_managelink()
1302 if (rtm->rtm_type == RTM_NEWADDR) { in if_managelink()
[all …]
Dif-linux.c412 if (rtm->rtm_type == RTN_UNREACHABLE) in if_copyrt()
477 if (rtm->rtm_type == RTN_UNREACHABLE) in if_copyrt6()
1363 nlm.rt.rtm_type = RTN_UNICAST; in if_route()
1556 nlm.rt.rtm_type = RTN_UNREACHABLE; in if_route6()
1558 nlm.rt.rtm_type = RTN_UNICAST; in if_route6()
/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-mx32/
Dnlattr_fib_rule_hdr.c58 .rtm_type = FR_ACT_TO_TBL, in init_rtmsg()
Dnetlink_route.c258 .rtm_type = RTN_LOCAL, in test_rtnl_route()
285 .rtm_type = FR_ACT_TO_TBL, in test_rtnl_rule()
Dnlattr_rtmsg.c57 .rtm_type = RTN_LOCAL, in init_rtmsg()
/external/strace/tests/
Dnlattr_fib_rule_hdr.c58 .rtm_type = FR_ACT_TO_TBL, in init_rtmsg()
Dnetlink_route.c258 .rtm_type = RTN_LOCAL, in test_rtnl_route()
285 .rtm_type = FR_ACT_TO_TBL, in test_rtnl_rule()
Dnlattr_rtmsg.c57 .rtm_type = RTN_LOCAL, in init_rtmsg()
/external/strace/tests-m32/
Dnlattr_fib_rule_hdr.c58 .rtm_type = FR_ACT_TO_TBL, in init_rtmsg()
Dnetlink_route.c258 .rtm_type = RTN_LOCAL, in test_rtnl_route()
285 .rtm_type = FR_ACT_TO_TBL, in test_rtnl_rule()
Dnlattr_rtmsg.c57 .rtm_type = RTN_LOCAL, in init_rtmsg()
/external/strace/
Drtnl_rule.c128 printxval(fib_rule_actions, msg.rtm_type, "FR_ACT_???"); in DECL_NETLINK_ROUTE_DECODER()
Drtnl_route.c297 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/dnsmasq/src/
Dnetlink.c280 if (rtm->rtm_type != RTN_UNICAST || rtm->rtm_scope != RT_SCOPE_LINK) 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/kernel-headers/original/uapi/linux/
Drtnetlink.h202 unsigned char rtm_type; /* See below */ member
/external/iproute2/include/uapi/linux/
Drtnetlink.h202 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()

12