/external/grpc-grpc/test/cpp/naming/ |
D | address_sorting_test.cc | 78 GPR_ASSERT(test_addr.family == AF_INET6); in TestAddressToGrpcResolvedAddress() 82 in6_dest.sin6_family = AF_INET6; in TestAddressToGrpcResolvedAddress() 83 GPR_ASSERT(inet_pton(AF_INET6, host, &in6_dest.sin6_addr) == 1); in TestAddressToGrpcResolvedAddress() 235 {"[2607:f8b0:400a:801::1002]:443", AF_INET6}, in TEST_F() 252 {"[2607:f8b0:400a:801::1002]:443", {"[fec0::1234]:0", AF_INET6}}, in TEST_F() 255 {"[2607:f8b0:400a:801::1002]:443", AF_INET6}, in TEST_F() 274 {"[fec0::1000]:0", AF_INET6}}, // global and site-local scope in TEST_F() 276 {"[fec0::5001]:0", AF_INET6}}, // site-local and site-local scope in TEST_F() 279 {"[2000:f8b0:400a:801::1002]:443", AF_INET6}, in TEST_F() 280 {"[fec0::5000]:443", AF_INET6}, in TEST_F() [all …]
|
/external/scapy/scapy/ |
D | utils6.py | 165 naddr = inet_pton(socket.AF_INET6, addr) 166 paddr = inet_ntop(socket.AF_INET6, naddr) # normalize 221 ifaceid = inet_pton(socket.AF_INET6, "::"+ifaceid)[8:16] 239 mask = inet_pton(socket.AF_INET6, "::ffff:ffff:ffff:ffff") 240 x = in6_and(mask, inet_pton(socket.AF_INET6, addr)) 241 ifaceid = inet_ntop(socket.AF_INET6, x)[2:] 288 addr = inet_pton(socket.AF_INET6, addr) 318 return inet_ntop(socket.AF_INET6, a) 328 addr = inet_ntop(socket.AF_INET6, b'\x20\x02'+addr+b'\x00'*10) 339 addr = inet_pton(socket.AF_INET6, addr) [all …]
|
/external/autotest/client/tests/ipv6connect/src/ |
D | ipv6connect.c | 47 if ((client_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ConnectAndAccept() 52 inet_pton(AF_INET6, "::1", &sa.sin6_addr); in ConnectAndAccept() 54 inet_pton(AF_INET6, "::ffff:127.0.0.1", &sa.sin6_addr); in ConnectAndAccept() 56 if (!inet_ntop(AF_INET6, &sa.sin6_addr, buf, INET6_ADDRSTRLEN)) { in ConnectAndAccept() 61 sa.sin6_family = AF_INET6; in ConnectAndAccept() 103 if ((*server_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServer() 108 sa.sin6_family = AF_INET6; in CreateServer() 132 if ((server_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServerConnectAndAccept() 138 sa.sin6_family = AF_INET6; in CreateServerConnectAndAccept() 156 if ((client_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServerConnectAndAccept() [all …]
|
/external/webrtc/webrtc/base/ |
D | ipaddress.cc | 65 case AF_INET6: in Size() 79 if (family_ == AF_INET6) { in operator ==() 99 if (family_ == AF_INET && other.family_ == AF_INET6) { in operator <() 110 case AF_INET6: { in operator <() 132 if (family_ != AF_INET && family_ != AF_INET6) { in ToString() 137 if (family_ == AF_INET6) { in ToString() 161 case AF_INET6: { in ToSensitiveString() 179 if (family_ != AF_INET6) { in Normalized() 217 if (ip.family() == AF_INET6) in operator <<() 245 } else if (info->ai_addr->sa_family == AF_INET6) { in IPFromAddrInfo() [all …]
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | reuseport_bpf.c | 61 case AF_INET6: in new_any_sockaddr() 63 addr6->sin6_family = AF_INET6; in new_any_sockaddr() 84 case AF_INET6: in new_loopback_sockaddr() 505 .recv_family = AF_INET6, in main() 506 .send_family = AF_INET6, in main() 512 .recv_family = AF_INET6, in main() 513 .send_family = AF_INET6, in main() 519 .recv_family = AF_INET6, in main() 520 .send_family = AF_INET6, in main() 526 .recv_family = AF_INET6, in main() [all …]
|
D | reuseport_dualstack.c | 45 case AF_INET6: in build_rcv_fd() 47 addr6->sin6_family = AF_INET6; in build_rcv_fd() 164 build_rcv_fd(AF_INET6, SOCK_DGRAM, &(rcv_fds[5]), 5); in main() 170 build_rcv_fd(AF_INET6, SOCK_DGRAM, rcv_fds, 5); in main() 181 build_rcv_fd(AF_INET6, SOCK_DGRAM, &(rcv_fds[16]), 16); in main() 187 build_rcv_fd(AF_INET6, SOCK_DGRAM, rcv_fds, 16); in main() 195 build_rcv_fd(AF_INET6, SOCK_STREAM, &(rcv_fds[5]), 5); in main() 201 build_rcv_fd(AF_INET6, SOCK_STREAM, rcv_fds, 5); in main()
|
D | reuseport_bpf_numa.c | 45 case AF_INET6: in build_rcv_group() 47 addr6->sin6_family = AF_INET6; in build_rcv_group() 126 case AF_INET6: in send_from_node() 128 saddr6->sin6_family = AF_INET6; in send_from_node() 133 daddr6->sin6_family = AF_INET6; in send_from_node() 246 test(rcv_fd, nodes, AF_INET6, SOCK_DGRAM); in main() 252 test(rcv_fd, nodes, AF_INET6, SOCK_STREAM); in main()
|
D | reuseport_bpf_cpu.c | 49 case AF_INET6: in build_rcv_group() 51 addr6->sin6_family = AF_INET6; in build_rcv_group() 114 case AF_INET6: in send_from_cpu() 116 saddr6->sin6_family = AF_INET6; in send_from_cpu() 121 daddr6->sin6_family = AF_INET6; in send_from_cpu() 247 test(rcv_fd, cpus, AF_INET6, SOCK_DGRAM); in main() 253 test(rcv_fd, cpus, AF_INET6, SOCK_STREAM); in main()
|
/external/libcups/cups/ |
D | http-addr.c | 43 #ifdef AF_INET6 in httpAddrAny() 44 if (addr->addr.sa_family == AF_INET6 && in httpAddrAny() 112 #ifdef AF_INET6 in httpAddrEqual() 113 if (addr1->addr.sa_family == AF_INET6) in httpAddrEqual() 133 #ifdef AF_INET6 in httpAddrLength() 134 if (addr->addr.sa_family == AF_INET6) in httpAddrLength() 188 if (addr->addr.sa_family == AF_INET6) in httpAddrListen() 291 #ifdef AF_INET6 in httpAddrLocalhost() 292 if (addr->addr.sa_family == AF_INET6 && in httpAddrLocalhost() 404 # ifdef AF_INET6 in httpAddrLookup() [all …]
|
D | http-addrlist.c | 495 # ifdef AF_INET6 in httpAddrGetList() 496 family == AF_INET6 ? "INET6" : in httpAddrGetList() 613 if (current->ai_family == AF_INET || current->ai_family == AF_INET6) in httpAddrGetList() 628 if (current->ai_family == AF_INET6) in httpAddrGetList() 730 # ifdef AF_INET6 in httpAddrGetList() 731 (host->h_addrtype == AF_INET || host->h_addrtype == AF_INET6)) in httpAddrGetList() 749 # ifdef AF_INET6 in httpAddrGetList() 750 if (host->h_addrtype == AF_INET6) in httpAddrGetList() 752 temp->addr.ipv6.sin6_family = AF_INET6; in httpAddrGetList() 837 #ifdef AF_INET6 in httpAddrGetList() [all …]
|
/external/ltp/testcases/network/lib6/ |
D | getaddrinfo_01.c | 544 hints.ai_family = AF_INET6; in gaiv6() 551 err |= pai->ai_family != AF_INET6; in gaiv6() 556 err |= psin6->sin6_family != AF_INET6; in gaiv6() 584 hints.ai_family = AF_INET6; in gaiv6() 621 hints.ai_family = AF_INET6; in gaiv6() 628 err |= pai->ai_family != AF_INET6; in gaiv6() 633 err |= psin6->sin6_family != AF_INET6; in gaiv6() 661 hints.ai_family = AF_INET6; in gaiv6() 672 err |= pai->ai_family != AF_INET6; in gaiv6() 682 err |= psin6->sin6_family != AF_INET6; in gaiv6() [all …]
|
D | in6_01.c | 90 sin6.sin6_family = AF_INET6; in test_sockaddr_in6() 96 sd = SAFE_SOCKET(AF_INET6, SOCK_STREAM, 0); in test_sockaddr_in6() 125 if (inet_pton(AF_INET6, "::1", &inl6) <= 0) in test_global_in6_def() 145 if (inet_pton(AF_INET6, maptab[i].addr, &in6) <= 0) in test_in6_is_addr_v4mapped() 182 af = psin6->sin6_family = AF_INET6; in test_sockaddr_storage() 183 rv = inet_pton(AF_INET6, sstab[i].addr, in test_sockaddr_storage()
|
/external/openssh/ |
D | addrmatch.c | 56 case AF_INET6: in addr_unicast_masklen() 69 case AF_INET6: in masklen_valid() 95 case AF_INET6: in addr_sa_to_xaddr() 98 xa->af = AF_INET6; in addr_sa_to_xaddr() 132 case AF_INET6: in addr_netmask() 133 n->af = AF_INET6; in addr_netmask() 162 case AF_INET6: in addr_and() 182 return a->af == AF_INET6 ? 1 : -1; in addr_cmp() 189 case AF_INET6: in addr_cmp() 245 case AF_INET6: in addr_invert() [all …]
|
D | canohost.c | 46 if (addr->ss_family != AF_INET6 || in ipv64_normalise_mapped() 88 if (addr.ss_family == AF_INET6) { in get_socket_address() 95 case AF_INET6: in get_socket_address() 179 if (from.ss_family == AF_INET6) in get_sock_port() 183 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 …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_sock_addr.c | 158 AF_INET6, 186 AF_INET6, 200 AF_INET6, 272 AF_INET6, 300 AF_INET6, 314 AF_INET6, 400 AF_INET6, 414 AF_INET6, 428 AF_INET6, 442 AF_INET6, [all …]
|
/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/tcpdump/ |
D | print-pflog.c | 155 #if defined(AF_INET6) || defined(OPENBSD_AF_INET6) in pflog_if_print() 156 #ifdef AF_INET6 in pflog_if_print() 157 case AF_INET6: in pflog_if_print() 159 #if !defined(AF_INET6) || OPENBSD_AF_INET6 != AF_INET6 in pflog_if_print()
|
/external/syzkaller/sys/freebsd/ |
D | socket_inet_icmp.txt | 4 # AF_INET and AF_INET6: ICMP support 26 socket$inet6_icmp(domain const[AF_INET6], type const[SOCK_DGRAM], proto const[IPPROTO_ICMPV6]) sock… 27 socket$inet6_icmp_raw(domain const[AF_INET6], type const[SOCK_RAW], proto const[IPPROTO_ICMPV6]) so… 28 socketpair$inet6_icmp(domain const[AF_INET6], type const[SOCK_DGRAM], proto const[IPPROTO_ICMPV6], … 29 socketpair$inet6_icmp_raw(domain const[AF_INET6], type const[SOCK_RAW], proto const[IPPROTO_ICMPV6]…
|
/external/syzkaller/sys/linux/ |
D | socket_inet_icmp.txt | 4 # AF_INET and AF_INET6: ICMP support 23 socket$inet6_icmp(domain const[AF_INET6], type const[SOCK_DGRAM], proto const[IPPROTO_ICMPV6]) sock… 24 socket$inet6_icmp_raw(domain const[AF_INET6], type const[SOCK_RAW], proto const[IPPROTO_ICMPV6]) so… 25 socketpair$inet6_icmp(domain const[AF_INET6], type const[SOCK_DGRAM], proto const[IPPROTO_ICMPV6], … 26 socketpair$inet6_icmp_raw(domain const[AF_INET6], type const[SOCK_RAW], proto const[IPPROTO_ICMPV6]…
|
/external/libevent/ |
D | ipv6-internal.h | 72 #ifndef AF_INET6 73 #define AF_INET6 3333 macro 76 #define PF_INET6 AF_INET6
|
/external/iproute2/ip/ |
D | rtmon.c | 93 family = AF_INET6; in main() 95 family = AF_INET6; in main() 105 family = AF_INET6; in main() 146 if (!family || family == AF_INET6) in main() 152 if (!family || family == AF_INET6) in main()
|
/external/strace/ |
D | socketutils.c | 161 case AF_INET6: in inet_parse_response() 173 const char *ob = diag_msg->idiag_family == AF_INET6 ? "[" : ""; in inet_parse_response() 174 const char *cb = diag_msg->idiag_family == AF_INET6 ? "]" : ""; in inet_parse_response() 480 { "TCPv6", inet_get, AF_INET6, IPPROTO_TCP }, 482 { "UDPv6", inet_get, AF_INET6, IPPROTO_UDP }, 484 { "UDPLITEv6", inet_get, AF_INET6, IPPROTO_UDPLITE }, 486 { "DCCPv6", inet_get, AF_INET6, IPPROTO_DCCP }, 488 { "SCTPv6", inet_get, AF_INET6, IPPROTO_SCTP }, 490 { "L2TP/IPv6", inet_get, AF_INET6, IPPROTO_L2TP }, 492 { "PINGv6", inet_get, AF_INET6, IPPROTO_ICMP }, [all …]
|
/external/libnl/lib/ |
D | addr.c | 327 case AF_INET6: in nl_addr_parse() 328 family = AF_INET6; in nl_addr_parse() 355 if (hint == AF_INET6 || hint == AF_UNSPEC) { in nl_addr_parse() 356 if (inet_pton(AF_INET6, str, buf) > 0) { in nl_addr_parse() 357 family = AF_INET6; in nl_addr_parse() 361 if (hint == AF_INET6) { in nl_addr_parse() 646 case AF_INET6: in nl_addr_valid() 681 return AF_INET6; in nl_addr_guess_family() 716 case AF_INET6: { in nl_addr_fill_sockaddr() 969 case AF_INET6: in nl_addr2str() [all …]
|
/external/bcc/tools/ |
D | tcpretrans.py | 22 from socket import inet_ntop, AF_INET, AF_INET6 261 "%s:%d" % (inet_ntop(AF_INET6, event.saddr), event.lport), 263 "%s:%d" % (inet_ntop(AF_INET6, event.daddr), event.dport), 274 depict_key = "%-20s <-> %-20s" % (ep_fmt % (inet_ntop(AF_INET6, k.saddr), k.lport), 275 ep_fmt % (inet_ntop(AF_INET6, k.daddr), k.dport))
|