/external/webrtc/webrtc/base/ |
D | ipaddress.h | 50 class IPAddress { 52 IPAddress() : family_(AF_UNSPEC) { in IPAddress() function 56 explicit IPAddress(const in_addr& ip4) : family_(AF_INET) { in IPAddress() function 61 explicit IPAddress(const in6_addr& ip6) : family_(AF_INET6) { in IPAddress() function 65 explicit IPAddress(uint32_t ip_in_host_byte_order) : family_(AF_INET) { in IPAddress() function 70 IPAddress(const IPAddress& other) : family_(other.family_) { in IPAddress() function 74 virtual ~IPAddress() {} in ~IPAddress() 76 const IPAddress & operator=(const IPAddress& other) { 82 bool operator==(const IPAddress& other) const; 83 bool operator!=(const IPAddress& other) const; [all …]
|
D | ipaddress.cc | 49 uint32_t IPAddress::v4AddressAsHostOrderInteger() const { in v4AddressAsHostOrderInteger() 57 bool IPAddress::IsNil() const { in IsNil() 61 size_t IPAddress::Size() const { in Size() 72 bool IPAddress::operator==(const IPAddress &other) const { in operator ==() 85 bool IPAddress::operator!=(const IPAddress &other) const { in operator !=() 89 bool IPAddress::operator >(const IPAddress &other) const { in operator >() 93 bool IPAddress::operator <(const IPAddress &other) const { in operator <() 118 std::ostream& operator<<(std::ostream& os, const IPAddress& ip) { in operator <<() 123 in6_addr IPAddress::ipv6_address() const { in ipv6_address() 127 in_addr IPAddress::ipv4_address() const { in ipv4_address() [all …]
|
D | ipaddress_unittest.cc | 105 bool AreEqual(const IPAddress& addr, in AreEqual() 106 const IPAddress& addr2) { in AreEqual() 132 IPAddress addr(0); // Intentionally make it v4. in BrokenIPStringFails() 140 IPAddress addr; in CheckMaskCount() 148 IPAddress addr; in TryInvalidMaskCount() 158 IPAddress addr, expected; in CheckTruncateIP() 161 IPAddress truncated = TruncateIP(addr, truncate_length); in CheckTruncateIP() 166 IPAddress addr; in TEST() 181 IPAddress addr(v4addr); in TEST() 190 addr = IPAddress(v4addr); in TEST() [all …]
|
D | socket_unittest.h | 62 const IPAddress kIPv4Loopback; 63 const IPAddress kIPv6Loopback; 66 void ConnectInternal(const IPAddress& loopback); 67 void ConnectWithDnsLookupInternal(const IPAddress& loopback, 69 void ConnectFailInternal(const IPAddress& loopback); 71 void ConnectWithDnsLookupFailInternal(const IPAddress& loopback); 72 void ConnectWithClosedSocketInternal(const IPAddress& loopback); 73 void ConnectWhileNotClosedInternal(const IPAddress& loopback); 74 void ServerCloseDuringConnectInternal(const IPAddress& loopback); 75 void ClientCloseDuringConnectInternal(const IPAddress& loopback); [all …]
|
D | socketaddress_unittest.cc | 39 EXPECT_EQ(IPAddress(), addr.ipaddr()); in TEST() 45 SocketAddress addr(IPAddress(0x01020304), 5678); in TEST() 47 EXPECT_EQ(IPAddress(0x01020304U), addr.ipaddr()); in TEST() 56 EXPECT_EQ(IPAddress(0x01020304U), addr.ipaddr()); in TEST() 64 IPAddress tocheck(kTestV6Addr); in TEST() 77 EXPECT_EQ(IPAddress(0xFFFFFFFFU), addr.ipaddr()); in TEST() 86 EXPECT_EQ(IPAddress(), addr.ipaddr()); in TEST() 96 EXPECT_EQ(IPAddress(0x01020304U), addr.ipaddr()); in TEST() 104 SocketAddress addr(IPAddress(0x88888888), 9999); in TEST() 107 EXPECT_EQ(IPAddress(0x01020304U), addr.ipaddr()); in TEST() [all …]
|
D | network.h | 55 std::string MakeNetworkKey(const std::string& name, const IPAddress& prefix, 64 virtual bool GetDefaultLocalAddress(int family, IPAddress* ipaddr) const = 0; 117 bool GetDefaultLocalAddress(int family, IPAddress* ipaddr) const override; 145 bool GetDefaultLocalAddress(int family, IPAddress* ipaddr) const override; 165 void set_default_local_addresses(const IPAddress& ipv4, 166 const IPAddress& ipv6); 182 IPAddress default_local_ipv4_address_; 183 IPAddress default_local_ipv6_address_; 236 IPAddress QueryDefaultLocalAddress(int family) const; 266 const IPAddress& prefix, [all …]
|
D | network_unittest.cc | 105 IPAddress ip; in CreateIpv6Addr() 154 IPAddress(0x12345600U), 24); in TEST_F() 157 EXPECT_EQ(IPAddress(0x12345600U), ipv4_network1.prefix()); in TEST_F() 164 IPAddress(0x12345600U), 24, ADAPTER_TYPE_ETHERNET); in TEST_F() 166 IPAddress(0x010000U), 24, ADAPTER_TYPE_ETHERNET); in TEST_F() 175 IPAddress(0x12345600U), 24); in TEST_F() 177 IPAddress(0x12345600U), 24); in TEST_F() 199 IPAddress ip = (*it)->GetBestIP(); in TEST_F() 261 IPAddress(0x12345600U), 24); in TEST_F() 263 IPAddress(0x00010000U), 16); in TEST_F() [all …]
|
D | network.cc | 87 IPAddress ip_a = a->GetBestIP(); in SortNetworks() 88 IPAddress ip_b = b->GetBestIP(); in SortNetworks() 157 std::string MakeNetworkKey(const std::string& name, const IPAddress& prefix, in MakeNetworkKey() 175 bool NetworkManager::GetDefaultLocalAddress(int family, IPAddress* addr) const { in GetDefaultLocalAddress() 198 const rtc::IPAddress ipv4_any_address(INADDR_ANY); in GetAnyAddressNetworks() 208 const rtc::IPAddress ipv6_any_address(in6addr_any); in GetAnyAddressNetworks() 346 void NetworkManagerBase::set_default_local_addresses(const IPAddress& ipv4, in set_default_local_addresses() 347 const IPAddress& ipv6) { in set_default_local_addresses() 357 IPAddress* ipaddr) const { in GetDefaultLocalAddress() 399 IPAddress prefix; in ConvertIfAddrs() [all …]
|
D | socketaddress.cc | 51 SetIP(IPAddress(ip_as_host_order_integer)); in SocketAddress() 55 SocketAddress::SocketAddress(const IPAddress& ip, int port) { in SocketAddress() 67 ip_ = IPAddress(); in Clear() 92 ip_ = IPAddress(ip_as_host_order_integer); in SetIP() 96 void SocketAddress::SetIP(const IPAddress& ip) { in SetIP() 107 ip_ = IPAddress(); in SetIP() 113 ip_ = IPAddress(ip_as_host_order_integer); in SetResolvedIP() 117 void SocketAddress::SetResolvedIP(const IPAddress& ip) { in SetResolvedIP() 131 const IPAddress& SocketAddress::ipaddr() const { in ipaddr() 282 IPAddress ip, in ToSockAddrStorageHelper() [all …]
|
D | win32_unittest.cc | 44 WinPing::PingResult result = ping.Ping(IPAddress(INADDR_LOOPBACK), 20, 50, 1, in TEST_F() 48 WinPing::PingResult v6result = ping.Ping(IPAddress(in6addr_loopback), 20, in TEST_F() 55 IPAddress(INADDR_LOOPBACK), 0, 50, 1, false)); in TEST_F() 57 IPAddress(INADDR_LOOPBACK), 20, 0, 1, false)); in TEST_F() 59 IPAddress(INADDR_LOOPBACK), 20, 50, 0, false)); in TEST_F() 63 IPAddress ipv6; in TEST_F()
|
D | ifaddrs_converter.cc | 22 IPAddress* mask) { in ConvertIfAddrsToIPAddress() 25 *ip = IPAddress( in ConvertIfAddrsToIPAddress() 27 *mask = IPAddress( in ConvertIfAddrsToIPAddress() 39 *mask = IPAddress( in ConvertIfAddrsToIPAddress()
|
D | socketaddress.h | 42 SocketAddress(const IPAddress& ip, int port); 64 void SetIP(const IPAddress& ip); 77 void SetResolvedIP(const IPAddress& ip); 89 const IPAddress& ipaddr() const; 181 IPAddress ip_;
|
D | socket_unittest.cc | 184 bool IsUnspecOrEmptyIP(const IPAddress& address) { in IsUnspecOrEmptyIP() 192 void SocketTest::ConnectInternal(const IPAddress& loopback) { in ConnectInternal() 246 void SocketTest::ConnectWithDnsLookupInternal(const IPAddress& loopback, in ConnectWithDnsLookupInternal() 295 void SocketTest::ConnectFailInternal(const IPAddress& loopback) { in ConnectFailInternal() 325 EXPECT_EQ(IPAddress(), accept_addr.ipaddr()); in ConnectFailInternal() 328 void SocketTest::ConnectWithDnsLookupFailInternal(const IPAddress& loopback) { in ConnectWithDnsLookupFailInternal() 369 void SocketTest::ConnectWithClosedSocketInternal(const IPAddress& loopback) { in ConnectWithClosedSocketInternal() 387 void SocketTest::ConnectWhileNotClosedInternal(const IPAddress& loopback) { in ConnectWhileNotClosedInternal() 430 void SocketTest::ServerCloseDuringConnectInternal(const IPAddress& loopback) { in ServerCloseDuringConnectInternal() 458 void SocketTest::ClientCloseDuringConnectInternal(const IPAddress& loopback) { in ClientCloseDuringConnectInternal() [all …]
|
D | fakenetwork.h | 101 IPAddress prefix = TruncateIP(it->first.ipaddr(), prefix_length); in DoUpdateNetworks() 123 IPAddress default_local_ipv4_address_; 124 IPAddress default_local_ipv6_address_;
|
D | virtualsocketserver.h | 43 IPAddress GetDefaultRoute(int family); 44 void SetDefaultRoute(const IPAddress& from_addr); 126 IPAddress GetNextIP(int family); 236 IPAddress default_route_v4_; 237 IPAddress default_route_v6_;
|
D | nethelpers.h | 44 const std::vector<IPAddress>& addresses() const { return addresses_; } in addresses() 53 std::vector<IPAddress> addresses_;
|
D | virtualsocketserver.cc | 528 IPAddress VirtualSocketServer::GetNextIP(int family) { in GetNextIP() 530 IPAddress next_ip(next_ipv4_); in GetNextIP() 535 IPAddress next_ip(next_ipv6_); in GetNextIP() 540 return IPAddress(); in GetNextIP() 669 IPAddress default_ip = GetDefaultRoute(addr.ipaddr().family()); in LookupBinding() 889 IPAddress default_ip = GetDefaultRoute(sender_addr.ipaddr().family()); in AddPacketToNetwork() 1077 IPAddress local_ip = local->GetLocalAddress().ipaddr(); in CanInteractWith() 1078 IPAddress remote_ip = remote->GetLocalAddress().ipaddr(); in CanInteractWith() 1079 IPAddress local_normalized = local_ip.Normalized(); in CanInteractWith() 1080 IPAddress remote_normalized = remote_ip.Normalized(); in CanInteractWith() [all …]
|
/external/webrtc/webrtc/p2p/client/ |
D | portallocator_unittest.cc | 35 using rtc::IPAddress; 265 const rtc::IPAddress& host_candidate_addr, in CheckDisableAdapterEnumeration() 266 const rtc::IPAddress& stun_candidate_addr, in CheckDisableAdapterEnumeration() 267 const rtc::IPAddress& relay_candidate_udp_transport_addr, in CheckDisableAdapterEnumeration() 268 const rtc::IPAddress& relay_candidate_tcp_transport_addr) { in CheckDisableAdapterEnumeration() 270 rtc::IPAddress()); in CheckDisableAdapterEnumeration() 292 rtc::IPAddress related_address = host_candidate_addr; in CheckDisableAdapterEnumeration() 411 AddInterface(SocketAddress(IPAddress(0x12345600U), 0), "test_eth0", in TEST_F() 413 AddInterface(SocketAddress(IPAddress(0x12345601U), 0), "test_wlan0", in TEST_F() 415 AddInterface(SocketAddress(IPAddress(0x12345602U), 0), "test_cell0", in TEST_F() [all …]
|
D | fakeportallocator.h | 32 const rtc::IPAddress& ip, in Create() 62 const rtc::IPAddress& ip, in TestUDPPort() 96 rtc::IPAddress(INADDR_LOOPBACK), 8), in FakePortAllocatorSession() 99 network_.AddIP(rtc::IPAddress(INADDR_LOOPBACK)); in FakePortAllocatorSession()
|
/external/webrtc/webrtc/p2p/base/ |
D | stun_unittest.cc | 43 rtc::IPAddress expected_address) { in CheckStunAddressAttribute() 535 rtc::IPAddress test_address(kIPv4TestAddress1); in TEST_F() 549 rtc::IPAddress test_address(kIPv4TestAddress1); in TEST_F() 560 rtc::IPAddress test_address(kIPv6TestAddress1); in TEST_F() 573 rtc::IPAddress test_address(kIPv6TestAddress1); in TEST_F() 584 rtc::IPAddress test_address(kIPv6TestAddress1); in TEST_F() 713 rtc::IPAddress test_address(kIPv4TestAddress1); in TEST_F() 723 rtc::IPAddress test_address(kIPv6TestAddress1); in TEST_F() 770 rtc::IPAddress test_address(kIPv4TestAddress1); in TEST_F() 809 rtc::IPAddress test_ip(kIPv6TestAddress2); in TEST_F() [all …]
|
D | stunport.h | 51 const rtc::IPAddress& ip, in Create() 113 const rtc::IPAddress& ip, 233 const rtc::IPAddress& ip, in Create() 261 const rtc::IPAddress& ip, in StunPort()
|
D | stun.cc | 518 rtc::IPAddress ipaddr(v4addr); in Read() 528 rtc::IPAddress ipaddr(v6addr); in Read() 571 rtc::IPAddress StunXorAddressAttribute::GetXoredIP() const { in GetXoredIP() 573 rtc::IPAddress ip = ipaddr(); in GetXoredIP() 579 return rtc::IPAddress(v4addr); in GetXoredIP() 596 return rtc::IPAddress(v6addr); in GetXoredIP() 604 return rtc::IPAddress(); in GetXoredIP() 611 rtc::IPAddress xored_ip = GetXoredIP(); in Read() 622 rtc::IPAddress xored_ip = GetXoredIP(); in Write()
|
D | relayport.h | 41 const rtc::IPAddress& ip, in Create() 79 const rtc::IPAddress& ip,
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/ |
D | GeneralName.java | 18 import org.bouncycastle.util.IPAddress; 266 if (IPAddress.isValidIPv6WithNetmask(ip) || IPAddress.isValidIPv6(ip)) in toGeneralNameEncoding() 297 else if (IPAddress.isValidIPv4WithNetmask(ip) || IPAddress.isValidIPv4(ip)) in toGeneralNameEncoding()
|
/external/webrtc/webrtc/p2p/stunprober/ |
D | stunprober.cc | 54 rtc::IPAddress server_addr; 87 Request* GetRequestByAddress(const rtc::IPAddress& ip); 219 const rtc::IPAddress& ipaddr) { in GetRequestByAddress() 449 std::set<rtc::IPAddress> srflx_ips; in GetStats() 453 std::map<rtc::IPAddress, int> num_response_per_server; in GetStats() 454 std::map<rtc::IPAddress, int> num_request_per_server; in GetStats()
|