/external/chromium_org/native_client_sdk/src/libraries/nacl_io/socket/ |
D | socket_node.cc | 113 PP_NetAddress_IPv4 addr4; in SockAddrToResource() local 119 memset(&addr4, 0, sizeof(addr4)); in SockAddrToResource() 121 addr4.port = sin->sin_port; in SockAddrToResource() 122 memcpy(addr4.addr, &sin->sin_addr, sizeof(addr4.addr)); in SockAddrToResource() 125 ->CreateFromIPv4Address(filesystem_->ppapi()->GetInstance(), &addr4); in SockAddrToResource() 156 sockaddr_in addr4; in ResourceToSockAddr() local 157 addr4.sin_family = AF_INET; in ResourceToSockAddr() 158 addr4.sin_port = ipv4.port; in ResourceToSockAddr() 159 memcpy(&addr4.sin_addr, ipv4.addr, sizeof(ipv4.addr)); in ResourceToSockAddr() 160 memcpy(out_addr, &addr4, in ResourceToSockAddr() [all …]
|
/external/ipsec-tools/src/racoon/ |
D | prsa_tok.l | 51 addr4 {octet}\.{octet}\.{octet}\.{octet} 55 addr6 (::({word6}|{addr4})?|({word6}:)+:?({word6}|{addr4})?) 84 {addr4} { prsalval.chr = strdup(prsatext); return ADDR4; }
|
D | prsa_par.y | 151 %type <naddr> addr4 addr6 addr 226 addr4 234 addr4:
|
D | isakmp_unity.c | 293 inet_ntop(AF_INET, &netentry->network.addr4, tmp1, 40); 372 inet_ntop(AF_INET, &netentry->network.addr4, tmp1, 40); 391 inet_ntop(AF_INET, &netentry->network.addr4, tmp1, 40);
|
D | isakmp_unity.h | 59 struct in_addr addr4; member
|
D | racoonctl.c | 1431 struct in_addr addr4; local 1433 memset(&addr4, 0, sizeof(addr4)); 1462 if (ntohs(attr->lorv) < sizeof(addr4)) { 1466 memcpy(&addr4, attr + 1, sizeof(addr4)); 1491 printf("Bound to address %s\n", inet_ntoa(addr4));
|
D | isakmp_cfg.c | 393 isakmp_cfg_getaddr4(attr, &iph1->mode_cfg->addr4); 783 in_addr_t addr4; local 820 && (iph1->mode_cfg->addr4.s_addr != htonl(-2))) 839 iph1->mode_cfg->addr4.s_addr = 854 attr, &iph1->mode_cfg->addr4.s_addr); 1544 RAD_FRAMED_IP_ADDRESS, iph1->mode_cfg->addr4) != 0) { 1552 RAD_LOGIN_IP_HOST, iph1->mode_cfg->addr4) != 0) { 1845 if((uint32_t)tmp.addr4.s_addr == 0) 1848 inet_ntop(AF_INET, &tmp.addr4, dest + p, IP_MAX); 1895 inet_ntop(AF_INET, &iph1->mode_cfg->addr4,
|
D | isakmp_cfg.h | 157 struct in_addr addr4; /* IPv4 address */ member
|
/external/chromium_org/third_party/webrtc/base/ |
D | ipaddress_unittest.cc | 332 IPAddress addr4(kIPv6PublicAddr); in TEST() local 336 EXPECT_TRUE(addr4 == addr4); in TEST() 338 EXPECT_TRUE(addr4 == addr6); in TEST() 339 EXPECT_TRUE(addr6 == addr4); in TEST() 340 EXPECT_FALSE(addr4 == addr5); in TEST() 341 EXPECT_FALSE(addr5 == addr4); in TEST() 346 EXPECT_FALSE(addr == addr4); in TEST() 349 EXPECT_FALSE(addr4 == addr); in TEST() 352 EXPECT_FALSE(addr2 == addr4); in TEST() 355 EXPECT_FALSE(addr4 == addr2); in TEST() [all …]
|
D | socketaddress_unittest.cc | 278 SocketAddress addr4("b.b.c.d", 1); in TEST() local 279 EXPECT_PRED2(AreUnequal, addr3, addr4); in TEST() 283 addr4.SetIP(addr1.ip()); in TEST() 284 EXPECT_PRED2(AreEqual,addr3, addr4); in TEST() 320 SocketAddress addr4("b.b.c.d", 1); in TEST() local 321 EXPECT_PRED2(IsLessThan, addr3, addr4); in TEST()
|
D | socketaddress.cc | 325 in_addr addr4; in StringToIP() local 326 if (rtc::inet_pton(AF_INET, hostname.c_str(), &addr4) > 0) { in StringToIP() 328 *ip = IPAddress(addr4); in StringToIP()
|
D | socket_unittest.cc | 893 SocketAddress addr4; in UdpInternal() local 895 EXPECT_TRUE(client1->CheckNextPacket("foo", 3, &addr4)); in UdpInternal() 896 EXPECT_EQ(addr4.ipaddr(), addr2.ipaddr()); in UdpInternal() 899 EXPECT_EQ(6, client1->SendTo("bizbaz", 6, addr4)); in UdpInternal() 903 addr2 = addr4; in UdpInternal()
|
/external/chromium_org/tools/android/forwarder2/ |
D | socket.cc | 75 addr_ptr_(reinterpret_cast<sockaddr*>(&addr_.addr4)), in Socket() 154 addr_.addr4.sin_family = family_; in InitTcpSocket() 155 addr_.addr4.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in InitTcpSocket() 161 addr_.addr4.sin_port = htons(port_); in InitTcpSocket() 162 addr_ptr_ = reinterpret_cast<sockaddr*>(&addr_.addr4); in InitTcpSocket() 163 addr_len_ = sizeof(addr_.addr4); in InitTcpSocket() 187 addr_ptr = reinterpret_cast<sockaddr*>(&addr.addr4); in BindAndListen() 188 port_ptr = &addr.addr4.sin_port; in BindAndListen() 189 addrlen = sizeof(addr.addr4); in BindAndListen() 271 memcpy(&addr_.addr4, in Resolve()
|
D | socket.h | 101 sockaddr_in addr4; member
|
/external/deqp/framework/delibs/deutil/ |
D | deSocket.c | 289 struct sockaddr_in* addr4 = (struct sockaddr_in*)bsdAddr; in deSocketAddressToBsdAddress() local 291 addr4->sin_port = htons((deUint16)address->port); in deSocketAddressToBsdAddress() 292 addr4->sin_family = AF_INET; in deSocketAddressToBsdAddress() 295 deMemcpy(&addr4->sin_addr, hostAddr, 4); in deSocketAddressToBsdAddress() 297 addr4->sin_addr.s_addr = INADDR_ANY; in deSocketAddressToBsdAddress() 316 const struct sockaddr_in* addr4 = (const struct sockaddr_in*)bsdAddr; in deBsdAddressToSocketAddress() local 321 deSocketAddress_setPort(address, ntohs(addr4->sin_port)); in deBsdAddressToSocketAddress() 324 deSocketAddress_setHost(address, inet_ntoa(addr4->sin_addr)); in deBsdAddressToSocketAddress() 328 inet_ntop(AF_INET, &addr4->sin_addr, buf, sizeof(buf)); in deBsdAddressToSocketAddress()
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/ |
D | fake_host_resolver_interface.cc | 125 sockaddr_in& addr4 = fake_addresses_v4[index]; in GetNetAddress() local 126 memcpy(addr.addr, &addr4.sin_addr, sizeof(addr4.sin_addr)); in GetNetAddress()
|
/external/dnsmasq/src/ |
D | cache.c | 780 domain_suffix = get_domain(addr.addr.addr4); in read_hostsfile() 789 if ((addr.addr.addr4.s_addr = inet_addr(token)) != (in_addr_t) -1) in read_hostsfile() 793 domain_suffix = get_domain(addr.addr.addr4); in read_hostsfile() 1048 if (crec->addr.addr.addr.addr4.s_addr != host_address->s_addr) in cache_add_dhcp_entry() 1050 strcpy(daemon->namebuff, inet_ntoa(crec->addr.addr.addr.addr4)); in cache_add_dhcp_entry() 1094 crec->addr.addr.addr.addr4 = *host_address; in cache_add_dhcp_entry() 1188 a = inet_ntoa(cache->addr.addr.addr.addr4); in dump_cache() 1251 strncpy(addrbuff, inet_ntoa(addr->addr.addr4), ADDRSTRLEN); in log_query()
|
D | dhcp.c | 944 config->hostname, inet_ntoa(crec->addr.addr.addr.addr4)); in dhcp_update_configs() 947 if (config_find_by_address(configs, crec->addr.addr.addr.addr4)) in dhcp_update_configs() 949 inet_ntoa(crec->addr.addr.addr.addr4), config->hostname); in dhcp_update_configs() 952 config->addr = crec->addr.addr.addr.addr4; in dhcp_update_configs()
|
/external/ipsec-tools/ |
D | setup.c | 600 struct sockaddr *addr4 = str2saddr(get_env(envp, "INTERNAL_ADDR4"), in privsep_script_exec() local 607 if (addr4 && local && remote) { in privsep_script_exec() 613 spdadd(addr4, NULL, IPPROTO_IP, local, remote); in privsep_script_exec() 619 racoon_free(addr4); in privsep_script_exec()
|
/external/android-clat/ |
D | translate.c | 92 struct in6_addr ipv4_addr_to_ipv6_addr(uint32_t addr4) { in ipv4_addr_to_ipv6_addr() argument 96 if (addr4 == Global_Clatd_Config.ipv4_local_subnet.s_addr) { in ipv4_addr_to_ipv6_addr() 101 addr6.s6_addr32[3] = addr4; in ipv4_addr_to_ipv6_addr()
|
/external/chromium_org/ppapi/shared_impl/private/ |
D | net_address_private_impl.cc | 426 const struct sockaddr_in* addr4 = in SockaddrToNetAddress() local 430 net_addr->port = ConvertFromNetEndian16(addr4->sin_port); in SockaddrToNetAddress() 431 memcpy(net_addr->address, &addr4->sin_addr.s_addr, kIPv4AddressSize); in SockaddrToNetAddress()
|
/external/chromium_org/net/base/ |
D | net_util_unittest.cc | 55 struct sockaddr_in* addr4 = reinterpret_cast<sockaddr_in*>(storage->addr); in MakeIPv4Address() local 56 addr4->sin_port = base::HostToNet16(port); in MakeIPv4Address() 57 addr4->sin_family = AF_INET; in MakeIPv4Address() 58 memcpy(&addr4->sin_addr, bytes, 4); in MakeIPv4Address()
|
/external/chromium_org/third_party/skia/tests/ |
D | PathOpsExtendedTest.cpp | 205 uint32_t* addr4 = bits.getAddr32(bitWidth, y + 1); in pathsDrawTheSame() local 211 && addr2[x] != addr4[x] && addr2[x + 1] != addr4[x + 1]; in pathsDrawTheSame()
|
/external/checkpolicy/ |
D | checkpolicy.c | 907 struct in_addr addr4; in main() local 927 p = (char *)&addr4; in main() 928 len = sizeof(addr4); in main()
|
/external/compiler-rt/test/dfsan/ |
D | custom.c | 533 char addr4[] = "127.0.0.1"; in test_inet_pton() local 534 dfsan_set_label(i_label, addr4 + 3, 1); in test_inet_pton() 536 int ret4 = inet_pton(AF_INET, addr4, &in4); in test_inet_pton()
|