Lines Matching refs:AF_INET
357 *af = AF_INET; in get_prefix()
358 if (family != AF_UNSPEC && family != AF_INET) return 1; in get_prefix()
389 if (naf == AF_INET) { in get_nmask_prefix()
420 else if (af == AF_INET && *addr) *netmask = 32; in parse_prefix()
644 fd = xsocket(AF_INET, SOCK_DGRAM, 0); in link_set()
754 fd = xsocket(AF_INET, SOCK_DGRAM, 0); in print_link_output()
851 inet_ntop(AF_INET, RTA_DATA(attr), link->laddr, 64); in get_link_info()
858 inet_ntop(AF_INET, RTA_DATA(attr), link->bcast, 64); in get_link_info()
996 if (ifa->ifa_family == AF_INET) strcpy(family, " inet "); in print_addrinfo()
1030 if (ifa->ifa_family == AF_INET) in print_addrinfo()
1034 if (TT.singleline && (ifa->ifa_family == AF_INET)) xputc('\n'); in print_addrinfo()
1097 req.ifadd.ifa_family = ((len == 4) ? AF_INET : AF_INET6); in ipaddrupdate()
1160 req.ifadd.ifa_family = ((len == 4) ? AF_INET : AF_INET6); in ipaddrupdate()
1185 if (req.ifadd.ifa_family != AF_INET) in ipaddrupdate()
1202 if (!scoped && (cmd != RTM_DELADDR) && (local.family == AF_INET) in ipaddrupdate()
1253 TT.addressfamily = ((len == 4) ? AF_INET : AF_INET6); in ipaddr_listflush()
1469 int hlen = ((msg->rtm_family == AF_INET) ? 32 in display_route_info()
1695 if (len) request.msg.rtm_family = ((len == 4) ? AF_INET : AF_INET6); in route_get()
1800 AF_INET : AF_INET6); in route_show_flush()
1825 AF_INET : AF_INET6); in route_show_flush()
1832 AF_INET : AF_INET6); in route_show_flush()
1846 AF_INET : AF_INET6); in route_show_flush()
1854 AF_INET : AF_INET6); in route_show_flush()
1860 if (family == AF_UNSPEC && gfilter.tb) family = AF_INET; in route_show_flush()
1870 if (family == AF_INET) return 0; in route_show_flush()
1932 if (len) req.msg.rtm_family = ((len == 4) ? AF_INET : AF_INET6); in route_update()
1938 if (len) req.msg.rtm_family = ((len == 4) ? AF_INET : AF_INET6); in route_update()
1984 if (len) req.msg.rtm_family = ((len == 4) ? AF_INET : AF_INET6); in route_update()
2015 if (req.msg.rtm_family == AF_UNSPEC) req.msg.rtm_family = AF_INET; in route_update()
2187 if (get_prefix(addr, &af /* Un-used variable */, *argv, AF_INET)) in ruleupdate()
2210 if (!request.msg.rtm_family) request.msg.rtm_family = AF_INET; in ruleupdate()
2223 int hlen = ((msg->rtm_family == AF_INET) ? 32 in show_rules()
2239 printf("%s", (msg->rtm_family == AF_INET || msg->rtm_family == AF_INET6) in show_rules()
2248 printf("to %s", (msg->rtm_family == AF_INET || msg->rtm_family == AF_INET6) in show_rules()
2293 ((TT.addressfamily != AF_UNSPEC) ? TT.addressfamily : AF_INET), NULL, 0); in rulelist()
2333 fd = xsocket(AF_INET, SOCK_DGRAM, 0); in tnl_ioctl()
2352 inet_ntop(AF_INET, &ptnl->iph.daddr, rmt_addr, sizeof(rmt_addr)) : "any", in display_tunnel()
2353 ptnl->iph.saddr ? inet_ntop(AF_INET, &ptnl->iph.saddr, lcl_addr, in display_tunnel()
2360 fd = xsocket(AF_INET, SOCK_DGRAM, 0); in display_tunnel()
2375 inet_ntop(AF_INET, &ptnl->i_key, ikey_str, sizeof(ikey_str)); in display_tunnel()
2379 inet_ntop(AF_INET, &ptnl->o_key, okey_str, sizeof(okey_str)); in display_tunnel()
2433 uint8_t af = AF_INET; in parse_iptunnel_args()
2478 hint.ai_family = AF_INET; in parse_iptunnel_args()
2484 if (get_prefix(&addr, &af, *argv, AF_INET)) in parse_iptunnel_args()
2534 if (get_prefix(&addr, &af, *argv, AF_INET)) in parse_iptunnel_args()
2545 fd = xsocket(AF_INET, SOCK_DGRAM, 0); in parse_iptunnel_args()
2749 if (num == 4) TT.addressfamily = AF_INET; in ip_main()
2753 struct arglist ip_aflist[] = {{"inet", AF_INET}, in ip_main()