/external/grpc-grpc/third_party/address_sorting/ |
D | address_sorting.c | 71 unsigned char* a = (unsigned char*)&sa->sin6_addr; in ipv6_prefix_match_length() 72 unsigned char* b = (unsigned char*)&sb->sin6_addr; in ipv6_prefix_match_length() 156 if (in6_is_addr_loopback(&ipv6_addr->sin6_addr)) { in get_label_value() 158 } else if (in6_is_addr_v4mapped(&ipv6_addr->sin6_addr)) { in get_label_value() 160 } else if (in6_is_addr_6to4(&ipv6_addr->sin6_addr)) { in get_label_value() 162 } else if (in6_is_addr_teredo(&ipv6_addr->sin6_addr)) { in get_label_value() 164 } else if (in6_is_addr_ula(&ipv6_addr->sin6_addr)) { in get_label_value() 166 } else if (in6_is_addr_v4compat(&ipv6_addr->sin6_addr)) { in get_label_value() 168 } else if (in6_is_addr_sitelocal(&ipv6_addr->sin6_addr)) { in get_label_value() 170 } else if (in6_is_addr_6bone(&ipv6_addr->sin6_addr)) { in get_label_value() [all …]
|
/external/parameter-framework/asio-1.10.6/include/asio/ip/detail/impl/ |
D | endpoint.ipp | 53 data_.v6.sin6_addr.s6_addr[0] = 0; data_.v6.sin6_addr.s6_addr[1] = 0; 54 data_.v6.sin6_addr.s6_addr[2] = 0, data_.v6.sin6_addr.s6_addr[3] = 0; 55 data_.v6.sin6_addr.s6_addr[4] = 0, data_.v6.sin6_addr.s6_addr[5] = 0; 56 data_.v6.sin6_addr.s6_addr[6] = 0, data_.v6.sin6_addr.s6_addr[7] = 0; 57 data_.v6.sin6_addr.s6_addr[8] = 0, data_.v6.sin6_addr.s6_addr[9] = 0; 58 data_.v6.sin6_addr.s6_addr[10] = 0, data_.v6.sin6_addr.s6_addr[11] = 0; 59 data_.v6.sin6_addr.s6_addr[12] = 0, data_.v6.sin6_addr.s6_addr[13] = 0; 60 data_.v6.sin6_addr.s6_addr[14] = 0, data_.v6.sin6_addr.s6_addr[15] = 0; 88 memcpy(data_.v6.sin6_addr.s6_addr, bytes.data(), 16); 144 memcpy(bytes.data(), data_.v6.sin6_addr.s6_addr, 16);
|
/external/autotest/client/tests/ipv6connect/src/ |
D | ipv6connect.c | 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() 109 sa.sin6_addr = in6addr_any; in CreateServer() 139 sa.sin6_addr = in6addr_any; in CreateServerConnectAndAccept() 161 inet_pton(AF_INET6, "::1", &sa.sin6_addr); in CreateServerConnectAndAccept() 163 inet_pton(AF_INET6, "::ffff:127.0.0.1", &sa.sin6_addr); in CreateServerConnectAndAccept() 165 if (!inet_ntop(AF_INET6, &sa.sin6_addr, buf, INET6_ADDRSTRLEN)) { in CreateServerConnectAndAccept() 232 sa.sin6_addr = in6addr_any; in ThreadedStartServer() 292 if (!inet_ntop(AF_INET6, &sa.sin6_addr, buf, INET6_ADDRSTRLEN)) { in ThreadedCreateServerConnectAndAccept() [all …]
|
/external/iputils/ |
D | traceroute6.c | 450 if (inet_pton(AF_INET6, *argv, &to->sin6_addr) > 0) { in main() 460 memmove((caddr_t)&to->sin6_addr, hp->h_addr, sizeof(to->sin6_addr)); 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() 613 if (memcmp(&from.sin6_addr, &lastaddr, sizeof(from.sin6_addr))) { in main() 616 &from.sin6_addr, in main() 876 inet_ntop(AF_INET6, &from->sin6_addr, pa1, sizeof(pa1)), in packet_ok() 904 Printf(" %s", inet_ntop(AF_INET6, &from->sin6_addr, in print() 912 hostname = inet_ntop(AF_INET6, &from->sin6_addr, pa, sizeof(pa)); in print() [all …]
|
D | ping6.c | 465 offset = OFFSET_OF(struct sockaddr_in6, sin6_addr); in niquery_option_subject_addr_handler() 768 if (inet_pton(AF_INET6, addr, (char*)&source.sin6_addr) <= 0) { in main() 871 addr = &((struct sockaddr_in6 *)(ai->ai_addr))->sin6_addr; in main() 877 if (IN6_IS_ADDR_UNSPECIFIED(&firsthop.sin6_addr)) { in main() 878 memcpy(&firsthop.sin6_addr, addr, 16); in main() 901 ni_subject = &whereto.sin6_addr; in main() 902 ni_subject_len = sizeof(whereto.sin6_addr); in main() 939 if (IN6_IS_ADDR_UNSPECIFIED(&firsthop.sin6_addr)) { in main() 940 memcpy(&firsthop.sin6_addr, &whereto.sin6_addr, 16); in main() 955 if (IN6_IS_ADDR_UNSPECIFIED(&source.sin6_addr)) { in main() [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | connect6_prog.c | 49 sa.sin6_addr.s6_addr32[0] = bpf_htonl(SRC_REWRITE_IP6_0); in connect_v6_prog() 50 sa.sin6_addr.s6_addr32[1] = bpf_htonl(SRC_REWRITE_IP6_1); in connect_v6_prog() 51 sa.sin6_addr.s6_addr32[2] = bpf_htonl(SRC_REWRITE_IP6_2); in connect_v6_prog() 52 sa.sin6_addr.s6_addr32[3] = bpf_htonl(SRC_REWRITE_IP6_3); in connect_v6_prog()
|
D | test_select_reuseport.c | 145 sa->v6.sin6_addr = in6addr_loopback; in sa46_init_loopback() 155 sa->v6.sin6_addr = in6addr_any; in sa46_init_inany() 257 expected.bind_inany = !srv_sa.v6.sin6_addr.s6_addr32[3] && in check_data() 258 !srv_sa.v6.sin6_addr.s6_addr32[2] && in check_data() 259 !srv_sa.v6.sin6_addr.s6_addr32[1] && in check_data() 260 !srv_sa.v6.sin6_addr.s6_addr32[0]; in check_data() 262 memcpy(&expected.skb_addrs[0], cli_sa.v6.sin6_addr.s6_addr32, in check_data() 263 sizeof(cli_sa.v6.sin6_addr)); in check_data()
|
/external/ipsec-tools/src/racoon/ |
D | grabmyaddr.c | 202 memcpy(&sin->sin6_addr, RTA_DATA(rta_tb[IFA_LOCAL]), 16); in recvaddrs() 203 if (IN6_IS_ADDR_LINKLOCAL(&sin->sin6_addr)) in recvaddrs() 389 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr) in grab_myaddrs() 390 || IN6_IS_ADDR_SITELOCAL(&sin6->sin6_addr)) { in grab_myaddrs() 392 ntohs(*(u_int16_t *)&sin6->sin6_addr.s6_addr[2]); in grab_myaddrs() 393 sin6->sin6_addr.s6_addr[2] = 0; in grab_myaddrs() 394 sin6->sin6_addr.s6_addr[3] = 0; in grab_myaddrs() 400 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr) in grab_myaddrs() 401 || IN6_IS_ADDR_SITELOCAL(&sin6->sin6_addr)) { in grab_myaddrs() 525 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr) in grab_myaddrs() [all …]
|
D | sockmisc.c | 117 sa1 = (caddr_t)&((struct sockaddr_in6 *)addr1)->sin6_addr; 118 sa2 = (caddr_t)&((struct sockaddr_in6 *)addr2)->sin6_addr; 177 sa1 = (caddr_t)&((struct sockaddr_in6 *)addr1)->sin6_addr; 178 sa2 = (caddr_t)&((struct sockaddr_in6 *)addr2)->sin6_addr; 240 sa1 = (caddr_t)&((struct sockaddr_in6 *)addr1)->sin6_addr; 241 sa2 = (caddr_t)&((struct sockaddr_in6 *)addr2)->sin6_addr; 456 memcpy(&sin6->sin6_addr, &pi->ipi6_addr, 457 sizeof(sin6->sin6_addr)); 459 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) 497 memcpy(&sin6->sin6_addr, CMSG_DATA(cm), [all …]
|
/external/ltp/utils/sctp/func_tests/ |
D | test_basic.c | 105 loop1.v6.sin6_addr = (struct in6_addr)SCTP_IN6ADDR_ANY_INIT; in main() 109 loop2.v6.sin6_addr = in6addr_loopback; in main() 211 if (memcmp(&msgname.v6.sin6_addr, &in6addr_loopback, in main() 212 sizeof(msgname.v6.sin6_addr))) { in main() 267 if (memcmp(&msgname.v6.sin6_addr, &in6addr_loopback, in main() 268 sizeof(msgname.v6.sin6_addr))) { in main() 366 NIP6(in6_addr->sin6_addr), in main() 396 NIP6(in6_addr->sin6_addr), in main() 430 if (memcmp(&msgname.v6.sin6_addr, &in6addr_loopback, in main() 431 sizeof(msgname.v6.sin6_addr))) { in main()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | ctrl_iface_udp.c | 100 inet_ntop(AF_INET6, &from->sin6_addr, addr, sizeof(*from)), in wpa_supplicant_ctrl_iface_attach() 127 !os_memcmp(&from->sin6_addr, &dst->addr.sin6_addr, 128 sizeof(from->sin6_addr))) { 130 inet_ntop(AF_INET6, &from->sin6_addr, addr, 174 !os_memcmp(&from->sin6_addr, &dst->addr.sin6_addr, 175 sizeof(from->sin6_addr))) { 177 inet_ntop(AF_INET6, &from->sin6_addr, addr, 248 inet_ntop(AF_INET6, &from.sin6_addr, addr, sizeof(from)); 423 addr.sin6_addr = in6addr_any; 425 inet_pton(AF_INET6, "::1", &addr.sin6_addr); [all …]
|
/external/libcups/cups/ |
D | http-addr.c | 45 IN6_IS_ADDR_UNSPECIFIED(&(addr->ipv6.sin6_addr))) in httpAddrAny() 114 return (!memcmp(&(addr1->ipv6.sin6_addr), &(addr2->ipv6.sin6_addr), 16)); in httpAddrEqual() 293 IN6_IS_ADDR_LOOPBACK(&(addr->ipv6.sin6_addr))) in httpAddrLocalhost() 406 host = gethostbyaddr((char *)&(addr->ipv6.sin6_addr), in httpAddrLookup() 570 for (sptr = temps, i = 0; i < 4 && addr->ipv6.sin6_addr.s6_addr32[i]; i ++) in httpAddrString() 572 temp = ntohl(addr->ipv6.sin6_addr.s6_addr32[i]); in httpAddrString() 580 if (temp || i == 3 || addr->ipv6.sin6_addr.s6_addr32[i + 1]) in httpAddrString() 589 while (i < 4 && !addr->ipv6.sin6_addr.s6_addr32[i]) in httpAddrString() 600 temp = ntohl(addr->ipv6.sin6_addr.s6_addr32[i]); in httpAddrString() 603 (i > 0 && addr->ipv6.sin6_addr.s6_addr32[i - 1])) in httpAddrString()
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | sockaddr_utils.cc | 52 if (memcmp(addr6->sin6_addr.s6_addr, kV4MappedPrefix, in grpc_sockaddr_is_v4mapped() 59 memcpy(&addr4_out->sin_addr, &addr6->sin6_addr.s6_addr[12], 4); in grpc_sockaddr_is_v4mapped() 82 memcpy(&addr6_out->sin6_addr.s6_addr[0], kV4MappedPrefix, 12); in grpc_sockaddr_to_v4mapped() 83 memcpy(&addr6_out->sin6_addr.s6_addr[12], &addr4->sin_addr, 4); in grpc_sockaddr_to_v4mapped() 114 if (addr6->sin6_addr.s6_addr[i] != 0) { in grpc_sockaddr_is_wildcard() 178 ip = &addr6->sin6_addr; in grpc_sockaddr_to_string() 205 if (grpc_inet_pton(GRPC_AF_INET6, addr, &addr6->sin6_addr) == 1) { in grpc_string_to_sockaddr()
|
/external/webrtc/webrtc/test/channel_transport/ |
D | udp_transport_impl.cc | 1094 &_filterIPAddress._sockaddr_in6.sin6_addr) < 0) in SetFilterIP() 1183 &_remoteRTPAddr._sockaddr_in6.sin6_addr); in BuildRemoteRTPAddr() 1212 &_remoteRTCPAddr._sockaddr_in6.sin6_addr); in BuildRemoteRTCPAddr() 1247 _localRTPAddr._sockaddr_in6.sin6_addr.Version6AddressUnion._s6_u32[0] = in BindRTPSendSocket() 1249 _localRTPAddr._sockaddr_in6.sin6_addr.Version6AddressUnion._s6_u32[1] = in BindRTPSendSocket() 1251 _localRTPAddr._sockaddr_in6.sin6_addr.Version6AddressUnion._s6_u32[2] = in BindRTPSendSocket() 1253 _localRTPAddr._sockaddr_in6.sin6_addr.Version6AddressUnion._s6_u32[3] = in BindRTPSendSocket() 1299 _localRTCPAddr._sockaddr_in6.sin6_addr.Version6AddressUnion._s6_u32[0] = in BindRTCPSendSocket() 1301 _localRTCPAddr._sockaddr_in6.sin6_addr.Version6AddressUnion._s6_u32[1] = in BindRTCPSendSocket() 1303 _localRTCPAddr._sockaddr_in6.sin6_addr.Version6AddressUnion._s6_u32[2] = in BindRTCPSendSocket() [all …]
|
/external/libpcap/testprogs/ |
D | findalldevstest.c | 266 ((struct sockaddr_in6 *)(a->addr))->sin6_addr.s6_addr, in ifprint() 271 ((struct sockaddr_in6 *)(a->netmask))->sin6_addr.s6_addr, in ifprint() 276 ((struct sockaddr_in6 *)(a->broadaddr))->sin6_addr.s6_addr, in ifprint() 281 ((struct sockaddr_in6 *)(a->dstaddr))->sin6_addr.s6_addr, in ifprint()
|
/external/webrtc/webrtc/base/ |
D | ifaddrs_converter.cc | 37 reinterpret_cast<sockaddr_in6*>(interface->ifa_addr)->sin6_addr, in ConvertIfAddrsToIPAddress() 40 reinterpret_cast<sockaddr_in6*>(interface->ifa_netmask)->sin6_addr); in ConvertIfAddrsToIPAddress()
|
D | ifaddrs-android.cc | 78 memcpy(&sa->sin6_addr, data, len); in set_addresses() 100 memset(&mask->sin6_addr, 0, sizeof(in6_addr)); in make_prefixes() 105 prefix = reinterpret_cast<char*>(&mask->sin6_addr); in make_prefixes()
|
/external/wpa_supplicant_8/src/common/ |
D | ctrl_iface_common.c | 47 if (os_memcmp(&in6_a->sin6_addr, &in6_b->sin6_addr, in sockaddr_compare() 48 sizeof(in6_a->sin6_addr)) != 0) in sockaddr_compare()
|
/external/grpc-grpc/test/core/iomgr/ |
D | sockaddr_utils_test.cc | 54 GPR_ASSERT(data_len == sizeof(addr6->sin6_addr.s6_addr)); in make_addr6() 55 memcpy(&addr6->sin6_addr.s6_addr, data, data_len); in make_addr6() 158 memset(&wild6_addr->sin6_addr.s6_addr, 0xbd, 1); in test_sockaddr_is_wildcard() 166 memset(&wild_mapped_addr->sin6_addr.s6_addr, 0xbd, 1); in test_sockaddr_is_wildcard()
|
/external/strace/tests-m32/ |
D | net-sockaddr.c | 173 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6_linklocal() 210 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6() 227 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6() 241 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6() 254 memset(&in6->sin6_addr, '0', sizeof(in6->sin6_addr) - 4); in check_in6() 260 (int) (len - offsetof(struct sockaddr_in6, sin6_addr)), 0, in check_in6()
|
/external/strace/tests/ |
D | net-sockaddr.c | 173 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6_linklocal() 210 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6() 227 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6() 241 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6() 254 memset(&in6->sin6_addr, '0', sizeof(in6->sin6_addr) - 4); in check_in6() 260 (int) (len - offsetof(struct sockaddr_in6, sin6_addr)), 0, in check_in6()
|
/external/strace/tests-mx32/ |
D | net-sockaddr.c | 173 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6_linklocal() 210 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6() 227 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6() 241 inet_pton(AF_INET6, h_addr, &in6->sin6_addr); in check_in6() 254 memset(&in6->sin6_addr, '0', sizeof(in6->sin6_addr) - 4); in check_in6() 260 (int) (len - offsetof(struct sockaddr_in6, sin6_addr)), 0, in check_in6()
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | reuseport_bpf_numa.c | 48 addr6->sin6_addr = in6addr_any; in build_rcv_group() 129 saddr6->sin6_addr = in6addr_any; in send_from_node() 134 daddr6->sin6_addr = in6addr_loopback; in send_from_node()
|
D | reuseport_bpf_cpu.c | 52 addr6->sin6_addr = in6addr_any; in build_rcv_group() 117 saddr6->sin6_addr = in6addr_any; in send_from_cpu() 122 daddr6->sin6_addr = in6addr_loopback; in send_from_cpu()
|
/external/toybox/toys/pending/ |
D | traceroute.c | 410 if (memcmp(&((struct sockaddr_in6 *)&last_addr)->sin6_addr, in do_trace() 411 &((struct sockaddr_in6 *)&from)->sin6_addr, in do_trace() 420 inet_ntop(AF_INET6, &((struct sockaddr_in6 *)&from)->sin6_addr, in do_trace() 432 &from)->sin6_addr, addr_str, INET6_ADDRSTRLEN); in do_trace() 607 if(inet_pton(AF_INET6, TT.src_ip, &(source.sin6_addr)) <= 0) in traceroute_main() 632 inet_ntop(AF_INET6, &((struct sockaddr_in6 *)&dest)->sin6_addr, in traceroute_main()
|