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
180 preferred_family = AF_INET; in main()
182 preferred_family = AF_INET6; in main()
184 preferred_family = AF_DECnet; in main()
186 preferred_family = AF_PACKET; in main()
188 preferred_family = AF_IPX; in main()
194 preferred_family = AF_INET; in main()
196 preferred_family = AF_INET6; in main()
198 preferred_family = AF_PACKET; in main()
200 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.c74 fd = socket(preferred_family, SOCK_DGRAM, 0); in tnl_get_ioctl()
95 fd = socket(preferred_family, SOCK_DGRAM, 0); in tnl_add_ioctl()
116 fd = socket(preferred_family, SOCK_DGRAM, 0); in tnl_del_ioctl()
134 fd = socket(preferred_family, SOCK_DGRAM, 0); in tnl_gen_ioctl()
Dipaddrlabel.c102 int af = preferred_family; in ipaddrlabel_list()
145 req.ifal.ifal_family = preferred_family; in ipaddrlabel_modify()
157 get_prefix(&prefix, *argv, preferred_family); in ipaddrlabel_modify()
224 int af = preferred_family; in ipaddrlabel_flush()
Dxfrm_policy.c211 preferred_family = AF_UNSPEC; in xfrm_tmpl_parse()
214 preferred_family = tmpl->family; in xfrm_tmpl_parse()
277 req.xpinfo.sel.family = preferred_family; in xfrm_policy_modify()
342 tmpl->family = preferred_family; in xfrm_policy_modify()
357 if (preferred_family == AF_UNSPEC) in xfrm_policy_modify()
358 preferred_family = req.xpinfo.sel.family; in xfrm_policy_modify()
633 if (preferred_family == AF_UNSPEC) in xfrm_policy_get_or_delete()
634 preferred_family = req.xpid.sel.family; in xfrm_policy_get_or_delete()
780 filter.xpinfo.sel.family = preferred_family; in xfrm_policy_list_or_deleteall()
833 if (preferred_family == AF_UNSPEC) in xfrm_policy_list_or_deleteall()
[all …]
Diprule.c213 int af = preferred_family; in iprule_list()
251 req.r.rtm_family = preferred_family; in iprule_modify()
416 int af = preferred_family; in iprule_flush()
462 switch (preferred_family) { in do_multirule()
465 preferred_family = RTNL_FAMILY_IPMR; in do_multirule()
468 preferred_family = RTNL_FAMILY_IP6MR; in do_multirule()
475 preferred_family); in do_multirule()
Dxfrm_state.c265 req.xsinfo.family = preferred_family; in xfrm_state_modify()
333 get_prefix(&coa, *argv, preferred_family); in xfrm_state_modify()
466 if (preferred_family == AF_UNSPEC) in xfrm_state_modify()
467 preferred_family = req.xsinfo.family; in xfrm_state_modify()
581 req.xspi.info.family = preferred_family; in xfrm_state_allocspi()
633 if (preferred_family == AF_UNSPEC) in xfrm_state_allocspi()
634 preferred_family = req.xspi.info.family; in xfrm_state_allocspi()
833 req.xsid.family = preferred_family; in xfrm_state_get_or_delete()
963 filter.xsinfo.family = preferred_family; in xfrm_state_list_or_deleteall()
992 if (preferred_family == AF_UNSPEC) in xfrm_state_list_or_deleteall()
[all …]
Dip6tunnel.c137 get_prefix(&raddr, *argv, preferred_family); in parse_args()
144 get_prefix(&laddr, *argv, preferred_family); in parse_args()
395 switch (preferred_family) { in do_ip6tunnel()
397 preferred_family = AF_INET6; in do_ip6tunnel()
402 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()
326 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()
Dipxfrm.c454 f = preferred_family; in xfrm_selector_print()
907 xfrm_selector_print(&xpinfo->sel, preferred_family, fp, title); in xfrm_policy_info_print()
1016 get_prefix(&src, *argv, preferred_family); in xfrm_id_parse()
1029 get_prefix(&dst, *argv, preferred_family); in xfrm_id_parse()
1319 get_prefix(&src, *argv, preferred_family); in xfrm_selector_parse()
1332 get_prefix(&dst, *argv, preferred_family); in xfrm_selector_parse()
Dxfrm_monitor.c66 family = preferred_family; in xfrm_acquire_print()
191 family = preferred_family; in xfrm_report_print()
Diptunnel.c600 switch (preferred_family) { in do_iptunnel()
602 preferred_family = AF_INET; in do_iptunnel()
614 fprintf(stderr, "Unsupported family:%d\n", preferred_family); in do_iptunnel()
Dipaddress.c775 filter.family = preferred_family; in ipaddr_list_or_flush()
858 if (rtnl_wilddump_request(&rth, preferred_family, RTM_GETLINK) < 0) { in ipaddr_list_or_flush()
1029 preferred_family = AF_PACKET; in ipaddr_list_link()
1077 req.ifa.ifa_family = preferred_family; in ipaddr_modify()
Dipmaddr.c252 filter.family = preferred_family; in multiaddr_list()
Dlink_gre.c72 req.i.ifi_family = preferred_family; in gre_parse_opt()
Diproute.c725 req.r.rtm_family = preferred_family; in iproute_modify()
1101 int do_ipv6 = preferred_family; in iproute_list_flush_or_save()
1368 req.r.rtm_family = preferred_family; in iproute_get()
Diplink.c481 req.i.ifi_family = preferred_family; in iplink_modify()
/external/iproute2/misc/
Dss.c43 int preferred_family = AF_UNSPEC; variable
1016 int fam = preferred_family; in parse_hostcond()
2758 preferred_family = AF_INET; in main()
2761 preferred_family = AF_INET6; in main()
2764 preferred_family = AF_PACKET; in main()
2768 preferred_family = AF_INET; in main()
2770 preferred_family = AF_INET6; in main()
2772 preferred_family = AF_PACKET; in main()
2774 preferred_family = AF_UNIX; in main()
2776 preferred_family = AF_NETLINK; in main()
[all …]
/external/iproute2/include/
Dutils.h12 extern int preferred_family;