Home
last modified time | relevance | path

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

12345678910>>...18

/external/scapy/scapy/
Dutils6.py165 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/
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 …]
Dnetwork.cc124 if (ip.family() != AF_INET6) { in IsIgnoredIPv6()
223 if (network->prefix().family() == AF_INET6) { in GetNetworks()
272 ASSERT(current_list.ips[0].family() == AF_INET6); in MergeNetworkList()
351 if (ipv6.family() == AF_INET6) { in set_default_local_addresses()
361 } else if (family == AF_INET6 && !default_local_ipv6_address_.IsNil()) { in GetDefaultLocalAddress()
414 cursor->ifa_addr->sa_family != AF_INET6) { in ConvertIfAddrs()
418 if (cursor->ifa_addr->sa_family == AF_INET6 && !ipv6_enabled()) { in ConvertIfAddrs()
427 if (cursor->ifa_addr->sa_family == AF_INET6) { in ConvertIfAddrs()
507 case AF_INET6: { in GetPrefix()
578 case AF_INET6: { in CreateNetworks()
[all …]
Difaddrs-android.cc74 } else if (msg->ifa_family == AF_INET6) { in set_addresses()
76 sa->sin6_family = AF_INET6; in set_addresses()
97 } else if (family == AF_INET6) { in make_prefixes()
99 mask->sin6_family = AF_INET6; in make_prefixes()
179 if (family == AF_INET || family == AF_INET6) { in getifaddrs()
/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.c45 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()
Dreuseport_bpf_numa.c43 case AF_INET6: in build_rcv_group()
45 addr6->sin6_family = AF_INET6; in build_rcv_group()
124 case AF_INET6: in send_from_node()
126 saddr6->sin6_family = AF_INET6; in send_from_node()
131 daddr6->sin6_family = AF_INET6; in send_from_node()
244 test(rcv_fd, nodes, AF_INET6, SOCK_DGRAM); in main()
250 test(rcv_fd, nodes, AF_INET6, SOCK_STREAM); in main()
Dreuseport_bpf_cpu.c49 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/
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.c495 # 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/
Dgetaddrinfo_01.c544 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 …]
Din6_01.c90 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/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/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()
Dprint-nflog.c43 #ifdef AF_INET6
44 { AF_INET6, "IPv6" },
149 #ifdef AF_INET6 in nflog_if_print()
150 case AF_INET6: in nflog_if_print()
/external/libevent/
Dipv6-internal.h72 #ifndef AF_INET6
73 #define AF_INET6 3333 macro
76 #define PF_INET6 AF_INET6
/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/libpcap/tests/
Dfindalldevstest.c111 case AF_INET6: in ifprint()
115 inet_ntop(AF_INET6, in ifprint()
120 inet_ntop(AF_INET6, in ifprint()
125 inet_ntop(AF_INET6, in ifprint()
130 inet_ntop(AF_INET6, in ifprint()
/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/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/android-clat/
Ddns64.c41 .ai_family = AF_INET6, in plat_prefix()
66 if (result->ai_family != AF_INET6) { in plat_prefix()
76 inet_ntop(AF_INET6, &plat_addr, plat_addr_str, sizeof(plat_addr_str))); in plat_prefix()
/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 …]
/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()
84 case AF_INET6: in tst_get_unused_port()

12345678910>>...18