Home
last modified time | relevance | path

Searched refs:AF_INET6 (Results 1 – 25 of 413) sorted by relevance

12345678910>>...17

/external/autotest/client/tests/ipv6connect/src/
Dipv6connect.c47 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/
Dipaddress.cc65 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/
Dreuseport_bpf.c60 case AF_INET6: in new_any_sockaddr()
62 addr6->sin6_family = AF_INET6; in new_any_sockaddr()
83 case AF_INET6: in new_loopback_sockaddr()
481 .recv_family = AF_INET6, in main()
482 .send_family = AF_INET6, in main()
488 .recv_family = AF_INET6, in main()
489 .send_family = AF_INET6, in main()
495 .recv_family = AF_INET6, in main()
496 .send_family = AF_INET6, in main()
502 .recv_family = AF_INET6, in main()
[all …]
Dreuseport_dualstack.c44 case AF_INET6: in build_rcv_fd()
46 addr6->sin6_family = AF_INET6; in build_rcv_fd()
163 build_rcv_fd(AF_INET6, SOCK_DGRAM, &(rcv_fds[5]), 5); in main()
169 build_rcv_fd(AF_INET6, SOCK_DGRAM, rcv_fds, 5); in main()
180 build_rcv_fd(AF_INET6, SOCK_DGRAM, &(rcv_fds[16]), 16); in main()
186 build_rcv_fd(AF_INET6, SOCK_DGRAM, rcv_fds, 16); in main()
194 build_rcv_fd(AF_INET6, SOCK_STREAM, &(rcv_fds[5]), 5); in main()
200 build_rcv_fd(AF_INET6, SOCK_STREAM, rcv_fds, 5); in main()
Dreuseport_bpf_cpu.c48 case AF_INET6: in build_rcv_group()
50 addr6->sin6_family = AF_INET6; in build_rcv_group()
113 case AF_INET6: in send_from_cpu()
115 saddr6->sin6_family = AF_INET6; in send_from_cpu()
120 daddr6->sin6_family = AF_INET6; in send_from_cpu()
246 test(rcv_fd, cpus, AF_INET6, SOCK_DGRAM); in main()
252 test(rcv_fd, cpus, AF_INET6, SOCK_STREAM); in main()
/external/chromium-trace/catapult/telemetry/third_party/web-page-replay/third_party/dns/
Dinet.py33 AF_INET6 = socket.AF_INET6 variable
35 AF_INET6 = 9999 variable
51 elif family == AF_INET6:
69 elif family == AF_INET6:
88 return AF_INET6
/external/libcups/cups/
Dhttp-addr.c43 #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 …]
Dhttp-addrlist.c478 # ifdef AF_INET6 in httpAddrGetList()
479 family == AF_INET6 ? "INET6" : in httpAddrGetList()
596 if (current->ai_family == AF_INET || current->ai_family == AF_INET6) in httpAddrGetList()
610 if (current->ai_family == AF_INET6) in httpAddrGetList()
712 # ifdef AF_INET6 in httpAddrGetList()
713 (host->h_addrtype == AF_INET || host->h_addrtype == AF_INET6)) in httpAddrGetList()
731 # ifdef AF_INET6 in httpAddrGetList()
732 if (host->h_addrtype == AF_INET6) in httpAddrGetList()
734 temp->addr.ipv6.sin6_family = AF_INET6; in httpAddrGetList()
819 #ifdef AF_INET6 in httpAddrGetList()
[all …]
/external/openssh/
Daddrmatch.c56 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 …]
/external/ltp/testcases/network/lib6/
Dgetaddrinfo_01.c543 hints.ai_family = AF_INET6; in gaiv6()
550 err |= pai->ai_family != AF_INET6; in gaiv6()
555 err |= psin6->sin6_family != AF_INET6; in gaiv6()
583 hints.ai_family = AF_INET6; in gaiv6()
620 hints.ai_family = AF_INET6; in gaiv6()
627 err |= pai->ai_family != AF_INET6; in gaiv6()
632 err |= psin6->sin6_family != AF_INET6; in gaiv6()
660 hints.ai_family = AF_INET6; in gaiv6()
671 err |= pai->ai_family != AF_INET6; in gaiv6()
681 err |= psin6->sin6_family != AF_INET6; in gaiv6()
[all …]
Din6_01.c123 sin6.sin6_family = AF_INET6; in test_sockaddr_in6()
152 if (inet_pton(AF_INET6, "::1", &inl6) <= 0) in test_global_in6_def()
171 if (inet_pton(AF_INET6, maptab[i].addr, &in6) <= 0) { in test_in6_is_addr_v4mapped()
209 af = psin6->sin6_family = AF_INET6; in test_sockaddr_storage()
210 rv = inet_pton(AF_INET6, sstab[i].addr, in test_sockaddr_storage()
/external/iputils/
Dtraceroute6.c346 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/chromium-trace/catapult/telemetry/third_party/web-page-replay/third_party/dns/rdtypes/IN/
DAAAA.py32 junk = dns.inet.inet_pton(dns.inet.AF_INET6, address)
46 file.write(dns.inet.inet_pton(dns.inet.AF_INET6, self.address))
49 address = dns.inet.inet_ntop(dns.inet.AF_INET6,
56 sa = dns.inet.inet_pton(dns.inet.AF_INET6, self.address)
57 oa = dns.inet.inet_pton(dns.inet.AF_INET6, other.address)
/external/wpa_supplicant_8/src/utils/
Dip_addr.c26 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/
Dprint-pflog.c155 #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/libevent/
Dipv6-internal.h70 #ifndef AF_INET6
71 #define AF_INET6 3333 macro
74 #define PF_INET6 AF_INET6
/external/libpcap/tests/
Dfindalldevstest.c92 case 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()
111 inet_ntop(AF_INET6, in ifprint()
/external/iproute2/ip/
Drtmon.c93 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/c-ares/
Dares_gethostbyname.c96 case AF_INET6: in ares_gethostbyname()
145 if ((hquery->want_family == AF_INET6) || in next_lookup()
148 hquery->sent_family = AF_INET6; in next_lookup()
194 else if (hquery->sent_family == AF_INET6) in host_callback()
213 status == ARES_ETIMEOUT) && (hquery->sent_family == AF_INET6 && in host_callback()
250 if (family == AF_INET || family == AF_INET6) in fake_hostent()
276 if (family == AF_INET6) in fake_hostent()
277 result = (ares_inet_pton(AF_INET6, name, &in6) < 1 ? 0 : 1); in fake_hostent()
287 else if (family == AF_INET6) in fake_hostent()
515 if (sortlist[i].family != AF_INET6) in get6_address_index()
/external/netperf/src/
Dnetsh.c387 #if defined(AF_INET6) in parse_address_family()
389 return(AF_INET6); in parse_address_family()
1035 #if defined(AF_INET6) in scan_cmd_line()
1036 address_family = AF_INET6; in scan_cmd_line()
1037 local_address_family = AF_INET6; in scan_cmd_line()
1072 #if defined(AF_INET6) in scan_cmd_line()
1073 case AF_INET6: in scan_cmd_line()
1083 #if defined(AF_INET6) in scan_cmd_line()
1084 case AF_INET6: in scan_cmd_line()
1127 #if defined(AF_INET6) in scan_cmd_line()
[all …]
/external/android-clat/
Ddns64.c40 .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()
/external/autotest/client/site_tests/kernel_ProtocolCheck/
Dkernel_ProtocolCheck.py31 Protocol('RAWv6', socket.AF_INET6, socket.SOCK_RAW, 0),
32 Protocol('UDPLITEv6', socket.AF_INET6, socket.SOCK_DGRAM,
34 Protocol('UDPv6', socket.AF_INET6, socket.SOCK_DGRAM, 0),
35 Protocol('TCPv6', socket.AF_INET6, socket.SOCK_STREAM, 0),
/external/libnl/lib/
Daddr.c327 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/ltp/lib/
Dtst_net.c47 case AF_INET6: in tst_get_unused_port()
48 addr6->sin6_family = AF_INET6; in tst_get_unused_port()
75 case AF_INET6: in tst_get_unused_port()
/external/mdnsresponder/mDNSPosix/
DmDNSUNP.c57 #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 …]

12345678910>>...17