Home
last modified time | relevance | path

Searched refs:preferred_family (Results 1 – 21 of 21) sorted by relevance

/external/iproute2/ip/
Dip.c26 int preferred_family = AF_UNSPEC; variable
167 preferred_family = AF_INET; in main()
169 preferred_family = AF_INET6; in main()
171 preferred_family = AF_DECnet; in main()
173 preferred_family = AF_PACKET; in main()
175 preferred_family = AF_IPX; in main()
181 preferred_family = AF_INET; in main()
183 preferred_family = AF_INET6; in main()
185 preferred_family = AF_PACKET; in main()
187 preferred_family = AF_IPX; in main()
[all …]
Dipmonitor.c161 if (!preferred_family || preferred_family == AF_INET) in do_ipmonitor()
163 if (!preferred_family || preferred_family == AF_INET6) in do_ipmonitor()
167 if (!preferred_family || preferred_family == AF_INET) in do_ipmonitor()
169 if (!preferred_family || preferred_family == AF_INET6) in do_ipmonitor()
173 if (!preferred_family || preferred_family == AF_INET6) in do_ipmonitor()
Dtunnel.c73 fd = socket(preferred_family, SOCK_DGRAM, 0); in tnl_ioctl_get_ifindex()
90 fd = socket(preferred_family, SOCK_DGRAM, 0); in tnl_ioctl_get_iftype()
108 fd = socket(preferred_family, SOCK_DGRAM, 0); in tnl_ioctl_get_ifname()
126 fd = socket(preferred_family, SOCK_DGRAM, 0); in tnl_get_ioctl()
145 fd = socket(preferred_family, SOCK_DGRAM, 0); in tnl_add_ioctl()
164 fd = socket(preferred_family, SOCK_DGRAM, 0); in tnl_del_ioctl()
180 fd = socket(preferred_family, SOCK_DGRAM, 0); in tnl_gen_ioctl()
Dxfrm_policy.c206 preferred_family = AF_UNSPEC; in xfrm_tmpl_parse()
209 preferred_family = tmpl->family; in xfrm_tmpl_parse()
249 req.xpinfo.sel.family = preferred_family; in xfrm_policy_modify()
305 tmpl->family = preferred_family; in xfrm_policy_modify()
320 if (preferred_family == AF_UNSPEC) in xfrm_policy_modify()
321 preferred_family = req.xpinfo.sel.family; in xfrm_policy_modify()
576 if (preferred_family == AF_UNSPEC) in xfrm_policy_get_or_delete()
577 preferred_family = req.xpid.sel.family; in xfrm_policy_get_or_delete()
718 filter.xpinfo.sel.family = preferred_family; in xfrm_policy_list_or_deleteall()
771 if (preferred_family == AF_UNSPEC) in xfrm_policy_list_or_deleteall()
[all …]
Diprule.c200 int af = preferred_family; in iprule_list()
238 req.r.rtm_family = preferred_family; in iprule_modify()
396 int af = preferred_family; in iprule_flush()
442 switch (preferred_family) { in do_multirule()
445 preferred_family = RTNL_FAMILY_IPMR; in do_multirule()
448 preferred_family = RTNL_FAMILY_IP6MR; in do_multirule()
455 preferred_family); in do_multirule()
Dipaddrlabel.c108 int af = preferred_family; in ipaddrlabel_list()
151 req.ifal.ifal_family = preferred_family; in ipaddrlabel_modify()
163 get_prefix(&prefix, *argv, preferred_family); in ipaddrlabel_modify()
230 int af = preferred_family; in ipaddrlabel_flush()
Dxfrm_state.c260 req.xsinfo.family = preferred_family; in xfrm_state_modify()
328 get_prefix(&coa, *argv, preferred_family); in xfrm_state_modify()
433 if (preferred_family == AF_UNSPEC) in xfrm_state_modify()
434 preferred_family = req.xsinfo.family; in xfrm_state_modify()
548 req.xspi.info.family = preferred_family; in xfrm_state_allocspi()
600 if (preferred_family == AF_UNSPEC) in xfrm_state_allocspi()
601 preferred_family = req.xspi.info.family; in xfrm_state_allocspi()
800 req.xsid.family = preferred_family; in xfrm_state_get_or_delete()
930 filter.xsinfo.family = preferred_family; in xfrm_state_list_or_deleteall()
959 if (preferred_family == AF_UNSPEC) in xfrm_state_list_or_deleteall()
[all …]
Dip6tunnel.c135 get_prefix(&raddr, *argv, preferred_family); in parse_args()
142 get_prefix(&laddr, *argv, preferred_family); in parse_args()
378 switch (preferred_family) { in do_ip6tunnel()
380 preferred_family = AF_INET6; in do_ip6tunnel()
385 fprintf(stderr, "Unsupported family:%d\n", preferred_family); in do_ip6tunnel()
Dipneigh.c113 req.ndm.ndm_family = preferred_family; in ipneigh_modify()
135 get_addr(&dst, *argv, preferred_family); in ipneigh_modify()
150 get_addr(&dst, *argv, preferred_family); in ipneigh_modify()
323 filter.family = preferred_family; in do_show_or_flush()
Dipntable.c83 req.ndtm.ndtm_family = preferred_family; in ipntable_modify()
372 if (preferred_family && preferred_family != ndtm->ndtm_family) in print_ntable()
603 filter.family = preferred_family; in ipntable_show()
623 if (rtnl_wilddump_request(&rth, preferred_family, RTM_GETNEIGHTBL) < 0) { in ipntable_show()
Dipprefix.c42 int family = preferred_family; in print_prefix()
Dxfrm_monitor.c66 family = preferred_family; in xfrm_acquire_print()
191 family = preferred_family; in xfrm_report_print()
Dipxfrm.c453 f = preferred_family; in xfrm_selector_print()
860 xfrm_selector_print(&xpinfo->sel, preferred_family, fp, title); in xfrm_policy_info_print()
949 get_prefix(&src, *argv, preferred_family); in xfrm_id_parse()
962 get_prefix(&dst, *argv, preferred_family); in xfrm_id_parse()
1219 get_prefix(&src, *argv, preferred_family); in xfrm_selector_parse()
1232 get_prefix(&dst, *argv, preferred_family); in xfrm_selector_parse()
Diptunnel.c595 switch (preferred_family) { in do_iptunnel()
597 preferred_family = AF_INET; in do_iptunnel()
609 fprintf(stderr, "Unsupported family:%d\n", preferred_family); in do_iptunnel()
Dipaddress.c719 filter.family = preferred_family; in ipaddr_list_or_flush()
795 if (rtnl_wilddump_request(&rth, preferred_family, RTM_GETLINK) < 0) { in ipaddr_list_or_flush()
962 preferred_family = AF_PACKET; in ipaddr_list_link()
1010 req.ifa.ifa_family = preferred_family; in ipaddr_modify()
Dipmaddr.c249 filter.family = preferred_family; in multiaddr_list()
Dlink_gre.c72 req.i.ifi_family = preferred_family; in gre_parse_opt()
Diproute.c685 req.r.rtm_family = preferred_family; in iproute_modify()
1041 int do_ipv6 = preferred_family; in iproute_list_or_flush()
1294 req.r.rtm_family = preferred_family; in iproute_get()
Diplink.c418 req.i.ifi_family = preferred_family; in iplink_modify()
/external/iproute2/misc/
Dss.c41 int preferred_family = AF_UNSPEC; variable
1007 int fam = preferred_family; in parse_hostcond()
2565 preferred_family = AF_INET; in main()
2568 preferred_family = AF_INET6; in main()
2571 preferred_family = AF_PACKET; in main()
2575 preferred_family = AF_INET; in main()
2577 preferred_family = AF_INET6; in main()
2579 preferred_family = AF_PACKET; in main()
2581 preferred_family = AF_UNIX; in main()
2583 preferred_family = AF_NETLINK; in main()
[all …]
/external/iproute2/include/
Dutils.h12 extern int preferred_family;