/external/chromium_org/native_client_sdk/src/libraries/nacl_io/socket/ |
D | socket_node.cc | 129 PP_NetAddress_IPv6 addr6; in SockAddrToResource() local 135 memset(&addr6, 0, sizeof(addr6)); in SockAddrToResource() 137 addr6.port = sin->sin6_port; in SockAddrToResource() 138 memcpy(addr6.addr, &sin->sin6_addr, sizeof(addr6.addr)); in SockAddrToResource() 141 ->CreateFromIPv6Address(filesystem_->ppapi()->GetInstance(), &addr6); in SockAddrToResource() 168 sockaddr_in6 addr6; in ResourceToSockAddr() local 169 addr6.sin6_family = AF_INET6; in ResourceToSockAddr() 170 addr6.sin6_port = ipv6.port; in ResourceToSockAddr() 171 memcpy(&addr6.sin6_addr, ipv6.addr, sizeof(ipv6.addr)); in ResourceToSockAddr() 172 memcpy(out_addr, &addr6, in ResourceToSockAddr() [all …]
|
/external/chromium_org/net/base/ |
D | ip_endpoint.cc | 73 struct sockaddr_in6* addr6 = in ToSockAddr() local 75 memset(addr6, 0, sizeof(struct sockaddr_in6)); in ToSockAddr() 76 addr6->sin6_family = AF_INET6; in ToSockAddr() 77 addr6->sin6_port = base::HostToNet16(port_); in ToSockAddr() 78 memcpy(&addr6->sin6_addr, &address_[0], kIPv6AddressSize); in ToSockAddr()
|
D | net_util_unittest.cc | 66 struct sockaddr_in6* addr6 = reinterpret_cast<sockaddr_in6*>(storage->addr); in MakeIPv6Address() local 67 addr6->sin6_port = base::HostToNet16(port); in MakeIPv6Address() 68 addr6->sin6_family = AF_INET6; in MakeIPv6Address() 69 memcpy(&addr6->sin6_addr, bytes, 16); in MakeIPv6Address()
|
/external/fio/engines/ |
D | net.c | 30 struct sockaddr_in6 addr6; member 399 to = (struct sockaddr *) &nd->addr6; in fio_netio_send() 400 len = sizeof(nd->addr6); in fio_netio_send() 463 from = (struct sockaddr *) &nd->addr6; in fio_netio_recv() 464 *len = sizeof(nd->addr6); in fio_netio_recv() 642 socklen_t len = sizeof(nd->addr6); in fio_netio_connect() 644 if (connect(f->fd, (struct sockaddr *) &nd->addr6, len) < 0) { in fio_netio_connect() 690 socklen = sizeof(nd->addr6); in fio_netio_accept() 691 f->fd = accept(nd->listenfd, (struct sockaddr *) &nd->addr6, &socklen); in fio_netio_accept() 728 to = (struct sockaddr *) &nd->addr6; in fio_netio_udp_close() [all …]
|
/external/android-clat/ |
D | translate.c | 65 int is_in_plat_subnet(const struct in6_addr *addr6) { in is_in_plat_subnet() argument 67 return (addr6 != NULL) && (memcmp(addr6, &Global_Clatd_Config.plat_subnet, 12) == 0); in is_in_plat_subnet() 75 uint32_t ipv6_addr_to_ipv4_addr(const struct in6_addr *addr6) { in ipv6_addr_to_ipv4_addr() argument 76 if (is_in_plat_subnet(addr6)) { in ipv6_addr_to_ipv4_addr() 78 return addr6->s6_addr32[3]; in ipv6_addr_to_ipv4_addr() 79 } else if (IN6_ARE_ADDR_EQUAL(addr6, &Global_Clatd_Config.ipv6_local_subnet)) { in ipv6_addr_to_ipv4_addr() 93 struct in6_addr addr6; in ipv4_addr_to_ipv6_addr() local 100 addr6 = Global_Clatd_Config.plat_subnet; in ipv4_addr_to_ipv6_addr() 101 addr6.s6_addr32[3] = addr4; in ipv4_addr_to_ipv6_addr() 102 return addr6; in ipv4_addr_to_ipv6_addr()
|
D | translate.h | 53 int is_in_plat_subnet(const struct in6_addr *addr6);
|
/external/chromium_org/third_party/webrtc/base/ |
D | ipaddress_unittest.cc | 334 IPAddress addr6(kIPv6PublicAddr); in TEST() local 338 EXPECT_TRUE(addr4 == addr6); in TEST() 339 EXPECT_TRUE(addr6 == addr4); in TEST() 342 EXPECT_FALSE(addr6 == addr5); in TEST() 343 EXPECT_FALSE(addr5 == addr6); in TEST() 348 EXPECT_FALSE(addr == addr6); in TEST() 351 EXPECT_FALSE(addr6 == addr); in TEST() 354 EXPECT_FALSE(addr2 == addr6); in TEST() 357 EXPECT_FALSE(addr6 == addr2); in TEST() 360 EXPECT_FALSE(addr3 == addr6); in TEST() [all …]
|
D | socketaddress.cc | 333 in6_addr addr6; in StringToIP() local 334 if (rtc::inet_pton(AF_INET6, hostname.c_str(), &addr6) > 0) { in StringToIP() 336 *ip = IPAddress(addr6); in StringToIP()
|
D | ipaddress.cc | 250 in6_addr addr6; in IPFromString() local 251 if (rtc::inet_pton(AF_INET6, str.c_str(), &addr6) == 0) { in IPFromString() 255 *out = IPAddress(addr6); in IPFromString()
|
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet/ |
D | sctp_userspace.c | 110 struct sockaddr_in6 *addr6; in Win_getifaddrs() local 169 addr6 = (struct sockaddr_in6 *)malloc(sizeof(struct sockaddr_in6)); in Win_getifaddrs() 171 if ((addr6 == NULL) || (ifa == NULL)) { in Win_getifaddrs() 177 ifa->ifa_addr = (struct sockaddr *)addr6; in Win_getifaddrs() 178 memcpy(addr6, &pAdapt->FirstUnicastAddress->Address.lpSockaddr, sizeof(struct sockaddr_in6)); in Win_getifaddrs()
|
/external/chromium_org/tools/android/forwarder2/ |
D | socket.cc | 165 addr_.addr6.sin6_port = htons(port_); in InitTcpSocket() 166 addr_ptr_ = reinterpret_cast<sockaddr*>(&addr_.addr6); in InitTcpSocket() 167 addr_len_ = sizeof(addr_.addr6); in InitTcpSocket() 191 addr_ptr = reinterpret_cast<sockaddr*>(&addr.addr6); in BindAndListen() 192 port_ptr = &addr.addr6.sin6_port; in BindAndListen() 193 addrlen = sizeof(addr.addr6); in BindAndListen() 276 memcpy(&addr_.addr6, in Resolve()
|
D | socket.h | 103 sockaddr_in6 addr6; member
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/ |
D | fake_host_resolver_interface.cc | 132 sockaddr_in6& addr6 = fake_addresses_v6[index]; in GetNetAddress() local 133 memcpy(addr.addr, &addr6.sin6_addr, sizeof(addr6.sin6_addr)); in GetNetAddress()
|
/external/tcpdump/ |
D | print-dhcp6.c | 907 struct in6_addr addr6; in dhcp6_print() local 911 memcpy(&addr6, dh6relay->dh6relay_linkaddr, sizeof (addr6)); in dhcp6_print() 912 printf("linkaddr=%s", ip6addr_string(&addr6)); in dhcp6_print() 914 memcpy(&addr6, dh6relay->dh6relay_peeraddr, sizeof (addr6)); in dhcp6_print() 915 printf(" peeraddr=%s", ip6addr_string(&addr6)); in dhcp6_print()
|
D | addrtoname.c | 110 struct sockaddr_in6 addr6; in win32_gethostbyaddr() local 118 memset(&addr6, 0, sizeof(addr6)); in win32_gethostbyaddr() 119 addr6.sin6_family = AF_INET6; in win32_gethostbyaddr() 120 memcpy(&addr6.sin6_addr, addr, len); in win32_gethostbyaddr() 121 if (getnameinfo((struct sockaddr *)&addr6, sizeof(addr6), in win32_gethostbyaddr()
|
/external/ipsec-tools/src/racoon/ |
D | prsa_tok.l | 55 addr6 (::({word6}|{addr4})?|({word6}:)+:?({word6}|{addr4})?) 85 {addr6} { prsalval.chr = strdup(prsatext); return ADDR6; }
|
D | prsa_par.y | 151 %type <naddr> addr4 addr6 addr 227 | addr6 257 addr6:
|
/external/chromium_org/ppapi/shared_impl/private/ |
D | net_address_private_impl.cc | 435 const struct sockaddr_in6* addr6 = in SockaddrToNetAddress() local 439 net_addr->port = ConvertFromNetEndian16(addr6->sin6_port); in SockaddrToNetAddress() 440 net_addr->flow_info = addr6->sin6_flowinfo; in SockaddrToNetAddress() 441 net_addr->scope_id = addr6->sin6_scope_id; in SockaddrToNetAddress() 442 memcpy(net_addr->address, addr6->sin6_addr.s6_addr, kIPv6AddressSize); in SockaddrToNetAddress()
|
/external/wpa_supplicant_8/src/radius/ |
D | radius_server.c | 102 struct in6_addr addr6; member 402 struct in6_addr *addr6; in radius_server_get_client() local 405 addr6 = (struct in6_addr *) addr; in radius_server_get_client() 407 if ((addr6->s6_addr[i] & in radius_server_get_client() 409 (client->addr6.s6_addr[i] & in radius_server_get_client() 1521 struct in6_addr addr6; in radius_server_read_clients() local 1586 if (ipv6 && inet_pton(AF_INET6, buf, &addr6) <= 0) { in radius_server_read_clients() 1594 os_memset(addr6.s6_addr, 0, 10); in radius_server_read_clients() 1595 addr6.s6_addr[10] = 0xff; in radius_server_read_clients() 1596 addr6.s6_addr[11] = 0xff; in radius_server_read_clients() [all …]
|
/external/chromium_org/third_party/libevent/test/ |
D | regress_dns.c | 208 char addr6[17] = "abcdefghijklmnop"; in dns_server_request_cb() local 210 1, addr6, 123); in dns_server_request_cb()
|
/external/fio/ |
D | client.h | 29 struct sockaddr_in6 addr6; member
|
D | client.c | 243 &client->addr6.sin6_addr)) in fio_client_add_explicit() 308 &client->addr6.sin6_addr, in fio_client_add() 349 client->addr6.sin6_family = AF_INET6; in fio_client_connect_ip() 350 client->addr6.sin6_port = htons(client->port); in fio_client_connect_ip() 352 addr = (struct sockaddr *) &client->addr6; in fio_client_connect_ip() 353 socklen = sizeof(client->addr6); in fio_client_connect_ip()
|
/external/mdnsresponder/mDNSPosix/ |
D | mDNSUNP.c | 90 char addr6[32+7+1]; /* don't forget the seven ':' */ in get_ifi_info_linuxv6() local 131 sprintf(addr6, "%s:%s:%s:%s:%s:%s:%s:%s", in get_ifi_info_linuxv6() 139 err = getaddrinfo(addr6, NULL, &hints, &res0); in get_ifi_info_linuxv6()
|
/external/checkpolicy/ |
D | checkpolicy.c | 908 struct in6_addr addr6; in main() local 930 p = (char *)&addr6; in main() 931 len = sizeof(addr6); in main()
|
/external/compiler-rt/test/dfsan/ |
D | custom.c | 541 char addr6[] = "::1"; in test_inet_pton() local 542 dfsan_set_label(j_label, addr6 + 3, 1); in test_inet_pton() 544 int ret6 = inet_pton(AF_INET6, addr6, &in6); in test_inet_pton()
|