/external/openssh/ |
D | addrmatch.c | 57 case AF_INET6: in addr_unicast_masklen() 70 case AF_INET6: in masklen_valid() 96 case AF_INET6: in addr_sa_to_xaddr() 99 xa->af = AF_INET6; in addr_sa_to_xaddr() 133 case AF_INET6: in addr_netmask() 134 n->af = AF_INET6; in addr_netmask() 163 case AF_INET6: in addr_and() 183 return a->af == AF_INET6 ? 1 : -1; in addr_cmp() 190 case AF_INET6: in addr_cmp() 246 case AF_INET6: in addr_invert() [all …]
|
D | canohost.c | 68 if (from.ss_family == AF_INET6) in get_remote_hostname() 187 if (addr->ss_family != AF_INET6 || in ipv64_normalise_mapped() 263 if (addr.ss_family == AF_INET6) { in get_socket_address() 270 case AF_INET6: in get_socket_address() 395 if (from.ss_family == AF_INET6) in get_sock_port() 399 if (from.ss_family != AF_INET && from.ss_family != AF_INET6) in get_sock_port()
|
/external/iputils/ |
D | traceroute6.c | 346 icmp_sock = socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6); in main() 447 to->sin6_family = AF_INET6; in main() 450 if (inet_pton(AF_INET6, *argv, &to->sin6_addr) > 0) { in main() 458 hp = gethostbyname2(idn ? idn : *argv, AF_INET6); in main() 523 if ((sndsock = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) { in main() 544 int probe_fd = socket(AF_INET6, SOCK_DGRAM, 0); in main() 568 saddr.sin6_family = AF_INET6; in main() 569 if (inet_pton(AF_INET6, source, &saddr.sin6_addr) <= 0) in main() 586 inet_ntop(AF_INET6, &to->sin6_addr, pa, sizeof(pa))); in main() 589 inet_ntop(AF_INET6, &saddr.sin6_addr, pa, sizeof(pa))); in main() [all …]
|
D | tracepath6.c | 57 sa_family_t family = AF_INET6; 149 case AF_INET6: in recverr() 220 case AF_INET6: in recverr() 333 case AF_INET6: in probe_ttl() 454 if (ai->ai_family != AF_INET6 && in main() 472 case AF_INET6: in main() 541 case AF_INET6: in main()
|
/external/wpa_supplicant_8/src/utils/ |
D | ip_addr.c | 26 if (addr->af == AF_INET6) { in hostapd_ip_txt() 27 if (inet_ntop(AF_INET6, &addr->u.v6, buf, buflen) == NULL) in hostapd_ip_txt() 45 if (inet_pton(AF_INET6, txt, &addr->u.v6) > 0) { in hostapd_parse_ip_addr() 46 addr->af = AF_INET6; in hostapd_parse_ip_addr()
|
/external/netperf/ |
D | netsh.c | 363 #if defined(AF_INET6) in parse_address_family() 365 return(AF_INET6); in parse_address_family() 773 #if defined(AF_INET6) in scan_cmd_line() 774 address_family = AF_INET6; in scan_cmd_line() 775 local_address_family = AF_INET6; in scan_cmd_line() 803 #if defined(AF_INET6) in scan_cmd_line() 804 case AF_INET6: in scan_cmd_line() 814 #if defined(AF_INET6) in scan_cmd_line() 815 case AF_INET6: in scan_cmd_line() 839 #if defined(AF_INET6) in scan_cmd_line() [all …]
|
/external/libpcap/tests/ |
D | findalldevstest.c | 87 case AF_INET6: in ifprint() 91 inet_ntop(AF_INET6, in ifprint() 96 inet_ntop(AF_INET6, in ifprint() 101 inet_ntop(AF_INET6, in ifprint() 106 inet_ntop(AF_INET6, in ifprint()
|
/external/iproute2/ip/ |
D | rtmon.c | 87 family = AF_INET6; in main() 89 family = AF_INET6; in main() 99 family = AF_INET6; in main() 140 if (!family || family == AF_INET6) in main() 146 if (!family || family == AF_INET6) in main()
|
D | ipprefix.c | 57 family = AF_INET6; in print_prefix() 58 if (family != AF_INET6) in print_prefix() 61 if (prefix->prefix_family != AF_INET6) { in print_prefix()
|
D | ipmonitor.c | 163 if (!preferred_family || preferred_family == AF_INET6) 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()
|
/external/lldb/source/Host/common/ |
D | SocketAddress.cpp | 87 case AF_INET6: return sizeof(struct sockaddr_in6); in GetFamilyLength() 129 case AF_INET6: return m_socket_addr.sa_ipv6.sin6_port; in GetPort() 143 case AF_INET6: in SetPort() 248 case AF_INET6: in SetToLocalhost() 249 SetFamily (AF_INET6); in SetToLocalhost()
|
/external/android-clat/ |
D | dns64.c | 40 .ai_family = AF_INET6, in plat_prefix() 60 if (result->ai_family != AF_INET6) { in plat_prefix() 70 inet_ntop(AF_INET6, &plat_addr, plat_addr_str, sizeof(plat_addr_str))); in plat_prefix()
|
D | clatd_test.cpp | 562 inet_pton(AF_INET6, kIPv6PlatSubnet, &Global_Clatd_Config.plat_subnet); in SetUp() 563 inet_pton(AF_INET6, kIPv6LocalAddr, &Global_Clatd_Config.ipv6_local_subnet); in SetUp() 572 inet_ntop(AF_INET6, expected, expected_str, sizeof(expected_str)); in expect_ipv6_addr_equal() 573 inet_ntop(AF_INET6, actual, actual_str, sizeof(actual_str)); in expect_ipv6_addr_equal() 623 ASSERT_TRUE(inet_pton(AF_INET6, "::bad:ace:d00d", &Global_Clatd_Config.ipv6_host_id)); in TEST_F() 624 ASSERT_TRUE(inet_pton(AF_INET6, "2001:db8:1:2:0:bad:ace:d00d", &expected)); in TEST_F() 625 ASSERT_TRUE(inet_pton(AF_INET6, "2001:db8:1:2:f076:ae99:124e:aa54", &myaddr)); in TEST_F() 636 ASSERT_TRUE(inet_pton(AF_INET6, "2001:db8:1:2:f076:ae99:124e:aa54", &interface_ipv6)); in TEST_F() 669 inet_ntop(AF_INET6, &myaddr, myaddr_str, sizeof(myaddr_str)); in TEST_F() 670 inet_ntop(AF_INET6, plat_subnet, plat_str, sizeof(plat_str)); in TEST_F() [all …]
|
/external/libnl/lib/ |
D | addr.c | 280 case AF_INET6: in nl_addr_parse() 281 family = AF_INET6; in nl_addr_parse() 310 if (hint == AF_INET6 || hint == AF_UNSPEC) { in nl_addr_parse() 311 if (inet_pton(AF_INET6, str, buf) > 0) { in nl_addr_parse() 312 family = AF_INET6; in nl_addr_parse() 316 if (hint == AF_INET6) { in nl_addr_parse() 575 case AF_INET6: in nl_addr_valid() 609 return AF_INET6; in nl_addr_guess_family() 644 case AF_INET6: { in nl_addr_fill_sockaddr() 848 case AF_INET6: in nl_addr2str() [all …]
|
/external/mdnsresponder/mDNSPosix/ |
D | mDNSUNP.c | 57 #if defined(AF_INET6) && HAVE_IPV6 && !HAVE_LINUX 63 #if defined(AF_INET6) && HAVE_IPV6 && HAVE_LINUX 104 sockfd = socket(AF_INET6, SOCK_DGRAM, 0); in get_ifi_info_linuxv6() 137 hints.ai_family = AF_INET6; in get_ifi_info_linuxv6() 234 #if defined(AF_INET6) && HAVE_IPV6 in get_ifi_info() 238 #if defined(AF_INET6) && HAVE_IPV6 && HAVE_LINUX in get_ifi_info() 239 if (family == AF_INET6) return get_ifi_info_linuxv6(family, doaliases); in get_ifi_info() 417 #if defined(AF_INET6) && HAVE_IPV6 in get_ifi_info() 418 case AF_INET6: in get_ifi_info() 436 sockf6 = socket(AF_INET6, SOCK_DGRAM, 0); in get_ifi_info() [all …]
|
D | mDNSUNP.h | 60 …((struct sockaddr*)&(X))->sa_family == AF_INET6 ? sizeof(struct sockaddr_in6) : sizeof(struct sock… 99 #if defined(AF_INET6) && HAVE_IPV6 && HAVE_LINUX 104 #if defined(AF_INET6) && HAVE_IPV6
|
/external/toybox/toys/pending/ |
D | ping.c | 61 if (inet_pton(AF_INET6, toys.optargs[0], (void*)&src_addr)) 66 family = AF_INET6; 100 error_exit("no v%d addr for -I %s", 4+2*(family==AF_INET6), TT.iface);
|
D | traceroute.c | 420 inet_ntop(AF_INET6, &((struct sockaddr_in6 *)&from)->sin6_addr, in do_trace() 431 inet_ntop(AF_INET6, &((struct sockaddr_in6 *) in do_trace() 484 (inet_pton(AF_INET6, toys.optargs[0], (void*)&dest))) in traceroute_main() 509 TT.recv_sock = xsocket((TT.istraceroute6 ? AF_INET6 : AF_INET), SOCK_RAW, in traceroute_main() 557 } else TT.snd_sock = xsocket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in traceroute_main() 602 resolve_addr(toys.optargs[0], AF_INET6, SOCK_DGRAM, IPPROTO_UDP, &dest); in traceroute_main() 607 if(inet_pton(AF_INET6, TT.src_ip, &(source.sin6_addr)) <= 0) in traceroute_main() 616 int p_fd = xsocket(AF_INET6, SOCK_DGRAM, 0); in traceroute_main() 632 inet_ntop(AF_INET6, &((struct sockaddr_in6 *)&dest)->sin6_addr, in traceroute_main()
|
/external/strace/ |
D | socketutils.c | 78 case AF_INET6: in inet_parse_response() 296 r = inet_print(fd, AF_INET6, IPPROTO_TCP, inode, "TCPv6"); in print_sockaddr_by_inode() 298 r = inet_print(fd, AF_INET6, IPPROTO_UDP, inode, "UDPv6"); in print_sockaddr_by_inode() 309 { AF_INET6, IPPROTO_TCP, "TCPv6" }, in print_sockaddr_by_inode() 310 { AF_INET6, IPPROTO_UDP, "UDPv6" } in print_sockaddr_by_inode()
|
/external/selinux/libsepol/cil/test/unit/ |
D | test_cil_post.c | 418 bnodecon->addr->family = AF_INET6; in test_cil_post_nodecon_compare_aipv4_bipv6() 437 anodecon->addr->family = AF_INET6; in test_cil_post_nodecon_compare_aipv6_bipv4() 552 anodecon->addr->family = AF_INET6; in test_cil_post_nodecon_compare_aipv6_greaterthan_bipv6() 556 bnodecon->addr->family = AF_INET6; in test_cil_post_nodecon_compare_aipv6_greaterthan_bipv6() 575 anodecon->addr->family = AF_INET6; in test_cil_post_nodecon_compare_aipv6_lessthan_bipv6() 579 bnodecon->addr->family = AF_INET6; in test_cil_post_nodecon_compare_aipv6_lessthan_bipv6() 598 anodecon->addr->family = AF_INET6; in test_cil_post_nodecon_compare_amaskipv6_greaterthan_bmaskipv6() 602 bnodecon->addr->family = AF_INET6; in test_cil_post_nodecon_compare_amaskipv6_greaterthan_bmaskipv6() 621 anodecon->addr->family = AF_INET6; in test_cil_post_nodecon_compare_amaskipv6_lessthan_bmaskipv6() 625 bnodecon->addr->family = AF_INET6; in test_cil_post_nodecon_compare_amaskipv6_lessthan_bmaskipv6()
|
/external/dnsmasq/src/ |
D | network.c | 103 else if (family == AF_INET6 && in iface_check() 185 if (addr->sa.sa_family == AF_INET6 && in iface_allowed() 186 !iface_check(AF_INET6, (struct all_addr *)&addr->in6.sin6_addr, ifr.ifr_name, NULL)) in iface_allowed() 219 addr.in6.sin6_family = AF_INET6; in iface_allowed_v6() 275 addr.in6.sin6_family = AF_INET6; in create_ipv6_listener() 283 if ((fd = socket(AF_INET6, SOCK_DGRAM, 0)) == -1) in create_ipv6_listener() 288 if ((tcpfd = socket(AF_INET6, SOCK_STREAM, 0)) == -1) in create_ipv6_listener() 311 l->family = AF_INET6; in create_ipv6_listener() 431 if (iface->addr.sa.sa_family == AF_INET6) in create_bound_listener() 448 if (iface->addr.sa.sa_family == AF_INET6 && (errno == ENODEV || errno == EADDRNOTAVAIL) && in create_bound_listener() [all …]
|
/external/ipsec-tools/src/racoon/ |
D | sockmisc.c | 112 case AF_INET6: 172 case AF_INET6: 235 case AF_INET6: 433 if (ss.ss_family == AF_INET6 441 sin6->sin6_family = AF_INET6; 477 if (ss.ss_family == AF_INET6 484 sin6->sin6_family = AF_INET6; 558 case AF_INET6: 724 if (src->sa_family == AF_INET6 && 785 case AF_INET6: [all …]
|
/external/iproute2/lib/ |
D | utils.c | 289 addr->bytelen = (family == AF_INET6 ? 16 : 4); in get_addr_1() 295 addr->family = AF_INET6; in get_addr_1() 296 if (family != AF_UNSPEC && family != AF_INET6) in get_addr_1() 298 if (inet_pton(AF_INET6, name, addr->data) <= 0) in get_addr_1() 356 case AF_INET6: in get_prefix_1() 527 case AF_INET6: in rt_addr_n2a() 563 if (af == AF_INET6 && ((__u32*)addr)[0] == 0 && in resolve_address() 611 case AF_INET6: in format_host()
|
/external/tcpdump/ |
D | print-pgm.c | 267 nla_af = AF_INET6; in pgm_print() 314 nla_af = AF_INET6; in pgm_print() 396 source_af = AF_INET6; in pgm_print() 420 group_af = AF_INET6; in pgm_print() 623 nla_af = AF_INET6; in pgm_print() 754 nla_af = AF_INET6; in pgm_print() 787 nla_af = AF_INET6; in pgm_print()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | ctrl_iface_udp.c | 80 inet_ntop(AF_INET6, &from->sin6_addr, addr, sizeof(*from)), in wpa_supplicant_ctrl_iface_attach() 110 inet_ntop(AF_INET6, &from->sin6_addr, addr, 157 inet_ntop(AF_INET6, &from->sin6_addr, addr, 228 inet_ntop(AF_INET6, &from.sin6_addr, addr, sizeof(from)); 367 addr.sin6_family = AF_INET6; 371 inet_pton(AF_INET6, "::1", &addr.sin6_addr); 476 inet_ntop(AF_INET6, &dst->addr.sin6_addr,
|