Searched refs:v4addr (Results 1 – 7 of 7) sorted by relevance
/external/webrtc/webrtc/base/ |
D | ipaddress_unittest.cc | 116 in_addr v4addr, v4addr2; in AreEqual() local 117 v4addr = addr.ipv4_address(); in AreEqual() 119 if (0 != memcmp(&v4addr, &v4addr2, sizeof(v4addr))) { in AreEqual() 177 in_addr v4addr; in TEST() local 180 v4addr.s_addr = INADDR_ANY; in TEST() 181 IPAddress addr(v4addr); in TEST() 189 v4addr.s_addr = htonl(INADDR_LOOPBACK); in TEST() 190 addr = IPAddress(v4addr); in TEST() 198 v4addr.s_addr = htonl(kIPv4RFC1918Addr); in TEST() 199 addr = IPAddress(v4addr); in TEST() [all …]
|
D | natsocketfactory.cc | 33 in_addr v4addr = ip.ipv4_address(); in PackAddressForNAT() local 34 memcpy(&buf[4], &v4addr, kNATEncodedIPv4AddressSize - 4); in PackAddressForNAT() 56 const in_addr* v4addr = reinterpret_cast<const in_addr*>(&buf[4]); in UnpackAddressFromNAT() local 57 *remote_addr = SocketAddress(IPAddress(*v4addr), port); in UnpackAddressFromNAT()
|
/external/webrtc/webrtc/p2p/base/ |
D | stun.cc | 511 in_addr v4addr; in Read() local 515 if (!buf->ReadBytes(reinterpret_cast<char*>(&v4addr), sizeof(v4addr))) { in Read() 518 rtc::IPAddress ipaddr(v4addr); in Read() 547 in_addr v4addr = address_.ipaddr().ipv4_address(); in Write() local 548 buf->WriteBytes(reinterpret_cast<char*>(&v4addr), sizeof(v4addr)); in Write() 576 in_addr v4addr = ip.ipv4_address(); in GetXoredIP() local 577 v4addr.s_addr = in GetXoredIP() 578 (v4addr.s_addr ^ rtc::HostToNetwork32(kStunMagicCookie)); in GetXoredIP() 579 return rtc::IPAddress(v4addr); in GetXoredIP() 631 in_addr v4addr = xored_ip.ipv4_address(); in Write() local [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_ipaddress.py | 667 v4addr = ipaddress.IPv4Address(1) variable in ComparisonTests 674 v4_addresses = [v4addr, v4intf] 714 (self.v4addr, self.v4addr2), 775 v4_ordered = [self.v4addr, self.v4net, self.v4intf] 790 v4addr = ipaddress.ip_address('1.1.1.1') 795 self.assertRaises(TypeError, v4addr.__lt__, v6addr) 796 self.assertRaises(TypeError, v4addr.__gt__, v6addr) 800 self.assertRaises(TypeError, v6addr.__lt__, v4addr) 801 self.assertRaises(TypeError, v6addr.__gt__, v4addr)
|
/external/mdnsresponder/mDNSCore/ |
D | uDNS.c | 2336 mDNSexport void mDNS_SetPrimaryInterfaceInfo(mDNS *m, const mDNSAddr *v4addr, const mDNSAddr *v6add… in mDNS_SetPrimaryInterfaceInfo() argument 2343 …if (v4addr && v4addr->type != mDNSAddrType_IPv4) { LogMsg("mDNS_SetPrimaryInterfaceInfo v4 address… in mDNS_SetPrimaryInterfaceInfo() 2349 v4Changed = !mDNSSameIPv4Address(m->AdvertisedV4.ip.v4, v4addr ? v4addr->ip.v4 : zerov4Addr); in mDNS_SetPrimaryInterfaceInfo() 2353 if (v4addr && (v4Changed || RouterChanged)) in mDNS_SetPrimaryInterfaceInfo() 2354 debugf("mDNS_SetPrimaryInterfaceInfo: address changed from %#a to %#a", &m->AdvertisedV4, v4addr); in mDNS_SetPrimaryInterfaceInfo() 2356 if (v4addr) m->AdvertisedV4 = *v4addr; else m->AdvertisedV4.ip.v4 = zerov4Addr; in mDNS_SetPrimaryInterfaceInfo() 2367 v6Changed ? "v6Changed " : "", v4addr, v6addr, router); in mDNS_SetPrimaryInterfaceInfo() 2399 m->retryGetAddr = m->timenow + (v4addr ? 0 : mDNSPlatformOneSecond * 5); in mDNS_SetPrimaryInterfaceInfo()
|
D | mDNSEmbeddedAPI.h | 2481 extern void mDNS_SetPrimaryInterfaceInfo(mDNS *m, const mDNSAddr *v4addr, const mDNSAddr *v6addr, …
|
/external/mdnsresponder/mDNSShared/ |
D | dnsextd.c | 3126 void mDNS_SetPrimaryInterfaceInfo(mDNS *m, const mDNSAddr *v4addr, const mDNSAddr *v6addr, const m… in mDNS_SetPrimaryInterfaceInfo() argument 3127 { ( void ) m; ( void ) v4addr; ( void ) v6addr; ( void ) router; } in mDNS_SetPrimaryInterfaceInfo()
|