/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/rust/crates/grpcio-sys/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/libcups/scheduler/ |
D | network.c | 244 (lis->address.ipv6.sin6_addr.s6_addr[0] & in cupsdNetIFUpdate() 245 temp->mask.ipv6.sin6_addr.s6_addr[0]) == in cupsdNetIFUpdate() 246 (temp->address.ipv6.sin6_addr.s6_addr[0] & in cupsdNetIFUpdate() 247 temp->mask.ipv6.sin6_addr.s6_addr[0]) && in cupsdNetIFUpdate() 248 (lis->address.ipv6.sin6_addr.s6_addr[1] & in cupsdNetIFUpdate() 249 temp->mask.ipv6.sin6_addr.s6_addr[1]) == in cupsdNetIFUpdate() 250 (temp->address.ipv6.sin6_addr.s6_addr[1] & in cupsdNetIFUpdate() 251 temp->mask.ipv6.sin6_addr.s6_addr[1]) && in cupsdNetIFUpdate() 252 (lis->address.ipv6.sin6_addr.s6_addr[2] & in cupsdNetIFUpdate() 253 temp->mask.ipv6.sin6_addr.s6_addr[2]) == in cupsdNetIFUpdate() [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/libwebsockets/lib/plat/freertos/ |
D | freertos-sockets.c | 164 memset((char *)&addr6->sin6_addr, 0, in lws_interface_to_sa() 166 addr6->sin6_addr.s6_addr[10] = 0xff; in lws_interface_to_sa() 167 addr6->sin6_addr.s6_addr[11] = 0xff; in lws_interface_to_sa() 168 memcpy(&addr6->sin6_addr.s6_addr[12], in lws_interface_to_sa() 179 memcpy(&addr6->sin6_addr, in lws_interface_to_sa() 180 &((struct sockaddr_in6 *)ifc->ifa_addr)->sin6_addr, in lws_interface_to_sa() 195 if (inet_pton(AF_INET6, ifname, &addr6->sin6_addr) == 1) in lws_interface_to_sa()
|
/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/usrsctp/usrsctplib/netinet6/ |
D | sctp6_usrreq.c | 86 temp = sin6->sin6_addr.s6_addr16[7]; in in6_sin6_2_sin() 88 temp = temp | sin6->sin6_addr.s6_addr16[6]; in in6_sin6_2_sin() 91 sin->sin_addr.s_addr = sin6->sin6_addr.s6_addr32[3]; in in6_sin6_2_sin() 117 ((uint32_t *)&sin6->sin6_addr)[0] = 0; in in6_sin_2_v4mapsin6() 118 ((uint32_t *)&sin6->sin6_addr)[1] = 0; in in6_sin_2_v4mapsin6() 119 ((uint32_t *)&sin6->sin6_addr)[2] = htonl(0xffff); in in6_sin_2_v4mapsin6() 120 ((uint32_t *)&sin6->sin6_addr)[3] = sin->sin_addr.s_addr; in in6_sin_2_v4mapsin6() 122 sin6->sin6_addr.s6_addr32[0] = 0; in in6_sin_2_v4mapsin6() 123 sin6->sin6_addr.s6_addr32[1] = 0; in in6_sin_2_v4mapsin6() 124 sin6->sin6_addr.s6_addr32[2] = htonl(0xffff); in in6_sin_2_v4mapsin6() [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 | 470 offset = OFFSET_OF(struct sockaddr_in6, sin6_addr); in niquery_option_subject_addr_handler() 773 if (inet_pton(AF_INET6, addr, (char*)&source.sin6_addr) <= 0) { in main() 876 addr = &((struct sockaddr_in6 *)(ai->ai_addr))->sin6_addr; in main() 882 if (IN6_IS_ADDR_UNSPECIFIED(&firsthop.sin6_addr)) { in main() 883 memcpy(&firsthop.sin6_addr, addr, 16); in main() 906 ni_subject = &whereto.sin6_addr; in main() 907 ni_subject_len = sizeof(whereto.sin6_addr); in main() 944 if (IN6_IS_ADDR_UNSPECIFIED(&firsthop.sin6_addr)) { in main() 945 memcpy(&firsthop.sin6_addr, &whereto.sin6_addr, 16); in main() 960 if (IN6_IS_ADDR_UNSPECIFIED(&source.sin6_addr)) { in main() [all …]
|
/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/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, 252 inet_ntop(AF_INET6, &from.sin6_addr, addr, sizeof(from)); 440 addr.sin6_addr = in6addr_any; 442 inet_pton(AF_INET6, "::1", &addr.sin6_addr); [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/progs/ |
D | connect6_prog.c | 84 sa.sin6_addr.s6_addr32[0] = bpf_htonl(SRC_REWRITE_IP6_0); in connect_v6_prog() 85 sa.sin6_addr.s6_addr32[1] = bpf_htonl(SRC_REWRITE_IP6_1); in connect_v6_prog() 86 sa.sin6_addr.s6_addr32[2] = bpf_htonl(SRC_REWRITE_IP6_2); in connect_v6_prog() 87 sa.sin6_addr.s6_addr32[3] = bpf_htonl(SRC_REWRITE_IP6_3); in connect_v6_prog()
|
/external/llvm-project/lldb/source/Host/common/ |
D | SocketAddress.cpp | 145 if (inet_ntop(GetFamily(), &m_socket_addr.sa_ipv6.sin6_addr, str, in GetIPAddress() 260 m_socket_addr.sa_ipv6.sin6_addr = in6addr_loopback; in SetToLocalhost() 282 m_socket_addr.sa_ipv6.sin6_addr = in6addr_any; in SetToAnyAddress() 294 : 0 == memcmp(&m_socket_addr.sa_ipv6.sin6_addr, &in6addr_any, 16); in IsAnyAddr() 300 : 0 == memcmp(&m_socket_addr.sa_ipv6.sin6_addr, &in6addr_loopback, in IsLocalhost() 314 return 0 == memcmp(&m_socket_addr.sa_ipv6.sin6_addr, in operator ==() 315 &rhs.m_socket_addr.sa_ipv6.sin6_addr, 16); in operator ==()
|
/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/libcups/cups/ |
D | http-addr.c | 43 IN6_IS_ADDR_UNSPECIFIED(&(addr->ipv6.sin6_addr))) in httpAddrAny() 112 return (!memcmp(&(addr1->ipv6.sin6_addr), &(addr2->ipv6.sin6_addr), 16)); in httpAddrEqual() 291 IN6_IS_ADDR_LOOPBACK(&(addr->ipv6.sin6_addr))) in httpAddrLocalhost() 404 host = gethostbyaddr((char *)&(addr->ipv6.sin6_addr), in httpAddrLookup() 568 for (sptr = temps, i = 0; i < 4 && addr->ipv6.sin6_addr.s6_addr32[i]; i ++) in httpAddrString() 570 temp = ntohl(addr->ipv6.sin6_addr.s6_addr32[i]); in httpAddrString() 578 if (temp || i == 3 || addr->ipv6.sin6_addr.s6_addr32[i + 1]) in httpAddrString() 587 while (i < 4 && !addr->ipv6.sin6_addr.s6_addr32[i]) in httpAddrString() 598 temp = ntohl(addr->ipv6.sin6_addr.s6_addr32[i]); in httpAddrString() 601 (i > 0 && addr->ipv6.sin6_addr.s6_addr32[i - 1])) in httpAddrString()
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/ |
D | sockaddr_utils.cc | 56 if (memcmp(addr6->sin6_addr.s6_addr, kV4MappedPrefix, in grpc_sockaddr_is_v4mapped() 63 memcpy(&addr4_out->sin_addr, &addr6->sin6_addr.s6_addr[12], 4); in grpc_sockaddr_is_v4mapped() 86 memcpy(&addr6_out->sin6_addr.s6_addr[0], kV4MappedPrefix, 12); in grpc_sockaddr_to_v4mapped() 87 memcpy(&addr6_out->sin6_addr.s6_addr[12], &addr4->sin_addr, 4); in grpc_sockaddr_to_v4mapped() 118 if (addr6->sin6_addr.s6_addr[i] != 0) { in grpc_sockaddr_is_wildcard() 177 ip = &addr6->sin6_addr; in grpc_sockaddr_to_string() 206 if (grpc_inet_pton(GRPC_AF_INET6, addr, &addr6->sin6_addr) == 1) { in grpc_string_to_sockaddr()
|
/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/libwebsockets/lib/plat/unix/ |
D | unix-sockets.c | 220 memset((char *)&addr6->sin6_addr, 0, in lws_interface_to_sa() 222 addr6->sin6_addr.s6_addr[10] = 0xff; in lws_interface_to_sa() 223 addr6->sin6_addr.s6_addr[11] = 0xff; in lws_interface_to_sa() 224 memcpy(&addr6->sin6_addr.s6_addr[12], in lws_interface_to_sa() 236 memcpy(&addr6->sin6_addr, in lws_interface_to_sa() 237 &((struct sockaddr_in6 *)ifc->ifa_addr)->sin6_addr, in lws_interface_to_sa() 252 if (inet_pton(AF_INET6, ifname, &addr6->sin6_addr) == 1) in lws_interface_to_sa()
|
/external/usrsctp/usrsctplib/netinet/ |
D | sctp_asconf.c | 234 memcpy((caddr_t)&sin6->sin6_addr, v6addr->addr, in sctp_process_asconf_add_ip() 236 if (IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr)) { in sctp_process_asconf_add_ip() 239 if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) in sctp_process_asconf_add_ip() 395 memcpy(&sin6->sin6_addr, v6addr->addr, in sctp_process_asconf_delete_ip() 397 if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) in sctp_process_asconf_delete_ip() 533 memcpy((caddr_t)&sin6->sin6_addr, v6addr->addr, in sctp_process_asconf_set_primary() 535 if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) in sctp_process_asconf_set_primary() 876 (memcmp(&aa->ap.addrp.addr, &sin6->sin6_addr, in sctp_asconf_addr_match() 925 (memcmp(&v6addr->addr, &sin6->sin6_addr, in sctp_addr_match() 1329 memcpy(&aa->ap.addrp.addr, &sin6->sin6_addr, in sctp_asconf_queue_mgmt() [all …]
|
/external/openscreen/platform/impl/ |
D | socket_address_posix_unittest.cc | 39 EXPECT_THAT(v6_address->sin6_addr.s6_addr, in TEST() 73 memcpy(&address.sin6_addr.s6_addr, kExpectedAddress, 16); in TEST() 84 EXPECT_THAT(v6_address->sin6_addr.s6_addr, in TEST()
|
/external/usrsctp/programs/ |
D | discard_server.c | 83 name = inet_ntop(AF_INET6, &addr.sin6.sin6_addr, namebuf, INET6_ADDRSTRLEN), 193 addr.sin6_addr = in6addr_any; 220 inet_ntop(AF_INET6, &addr.sin6_addr, name, INET6_ADDRSTRLEN), ntohs(addr.sin6_port), 230 inet_ntop(AF_INET6, &addr.sin6_addr, name, INET6_ADDRSTRLEN), ntohs(addr.sin6_port),
|
D | client.c | 139 addr6.sin6_addr = in6addr_any; in main() 164 if (inet_pton(AF_INET6, argv[1], &addr6.sin6_addr) == 1) { in main() 206 name = inet_ntop(AF_INET6, &sin6->sin6_addr, buf, INET6_ADDRSTRLEN); in main() 254 name = inet_ntop(AF_INET6, &sin6->sin6_addr, buf, INET6_ADDRSTRLEN); in main()
|
/external/webrtc/rtc_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()
|
/external/libwebsockets/lib/plat/windows/ |
D | windows-sockets.c | 149 if (lws_plat_inet_pton(AF_INET6, ifname, &addr6->sin6_addr) == 1) { in lws_interface_to_sa() 262 memcpy(&(srcaddr.sin6_addr), src, sizeof(srcaddr.sin6_addr)); in lws_plat_inet_ntop() 326 memcpy(dst, &dstaddr.sin6_addr, sizeof(dstaddr.sin6_addr)); in lws_plat_inet_pton()
|