Home
last modified time | relevance | path

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

/external/iproute2/ip/
Diprule.c196 if (r->rtm_type == RTN_NAT) { in print_rule()
205 } else if (r->rtm_type == FR_ACT_GOTO) { in print_rule()
213 } else if (r->rtm_type == FR_ACT_NOP) in print_rule()
215 else if (r->rtm_type != RTN_UNICAST) in print_rule()
216 fprintf(fp, "%s", rtnl_rtntype_n2a(r->rtm_type, b1, sizeof(b1))); in print_rule()
352 req.r.rtm_type = RTN_UNSPEC; in iprule_modify()
357 req.r.rtm_type = RTN_UNICAST; in iprule_modify()
449 req.r.rtm_type = RTN_NAT; in iprule_modify()
476 req.r.rtm_type = type; in iprule_modify()
Diproute.c164 if (r->rtm_type != RTN_LOCAL) in filter_nlmsg()
167 if (r->rtm_type == RTN_LOCAL) in filter_nlmsg()
181 if ((filter.type^r->rtm_type)&filter.typemask) in filter_nlmsg()
287 r->rtm_type == RTN_UNREACHABLE && in filter_nlmsg()
360 if ((r->rtm_type != RTN_UNICAST || show_details > 0) && !filter.type) in print_route()
361 fprintf(fp, "%s ", rtnl_rtntype_n2a(r->rtm_type, b1, sizeof(b1))); in print_route()
638 if (r->rtm_flags&RTM_F_CLONED && r->rtm_type == RTN_MULTICAST) { in print_route()
681 if (r->rtm_flags&RTM_F_CLONED && r->rtm_type == RTN_MULTICAST) { in print_route()
849 req.r.rtm_type = RTN_UNICAST; in iproute_modify()
1146 req.r.rtm_type = type; in iproute_modify()
[all …]
Dipmroute.c80 if (r->rtm_type != RTN_MULTICAST) { in print_mroute()
82 rtnl_rtntype_n2a(r->rtm_type, b1, sizeof(b1))); 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/avahi/avahi-autoipd/
Diface-bsd.c282 switch (rtm->rtm_type) { in rtm_dispatch()
291 daemon_log(LOG_DEBUG, "%s: rtm_type %d ignored", __func__, rtm->rtm_type); in rtm_dispatch()
315 assert(rtm->rtm.rtm_type == RTM_IFANNOUNCE); in rtm_dispatch_ifannounce()
/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/libnl/lib/route/
Drule.c102 rule->r_type = r->rtm_type; in rule_msg_parser()
391 .rtm_type = RTN_UNSPEC in build_rule_msg()
395 rtm.rtm_type = RTN_UNICAST; in build_rule_msg()
407 rtm.rtm_type = tmpl->r_type; in build_rule_msg()
Droute_obj.c936 route->rt_type = rtm->rtm_type; in rtnl_route_parse()
1089 .rtm_type = route->rt_type, in rtnl_route_build_msg()
/external/avahi/avahi-core/
Diface-pfroute.c211 if(rtm->rtm_type == RTM_NEWADDR) in rtm_addr()
227 assert(rtm->rtm_type == RTM_DELADDR); in rtm_addr()
248 switch (rtm->rtm_type) { in parse_rtmsg()
/external/ipsec-tools/src/racoon/
Dgrabmyaddr.c665 switch (rtm->rtm_type) { in update_myaddrs()
676 "msg %d not interesting\n", rtm->rtm_type); in update_myaddrs()
683 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/libnl/include/linux/
Drtnetlink.h161 unsigned char rtm_type; /* See below */ member
/external/kernel-headers/original/uapi/linux/
Drtnetlink.h191 unsigned char rtm_type; /* See below */ member
/external/iproute2/include/linux/
Drtnetlink.h191 unsigned char rtm_type; /* See below */ member
/external/wpa_supplicant_8/src/drivers/
Ddriver_bsd.c799 switch (rtm->rtm_type) { in bsd_wireless_event_receive()
1239 switch (rtm->rtm_type) { in wpa_driver_bsd_event_receive()