Home
last modified time | relevance | path

Searched refs:GetBestIP (Results 1 – 14 of 14) sorted by relevance

/external/webrtc/p2p/base/
Dtcp_port.cc191 AddAddress(rtc::SocketAddress(Network()->GetBestIP(), DISCARD_PORT), in PrepareAddress()
192 rtc::SocketAddress(Network()->GetBestIP(), 0), in PrepareAddress()
294 rtc::SocketAddress(Network()->GetBestIP(), 0), min_port(), max_port(), in TryCreateServerSocket()
464 } else if (IPIsAny(port_->Network()->GetBestIP())) { in OnConnect()
569 rtc::SocketAddress(port()->Network()->GetBestIP(), 0), in CreateOutgoingTcpSocket()
Dturn_port.cc356 << " local: " << Network()->GetBestIP().family(); in PrepareAddress()
387 rtc::SocketAddress(Network()->GetBestIP(), 0), min_port(), max_port()); in CreateTurnClientSocket()
409 rtc::SocketAddress(Network()->GetBestIP(), 0), server_address_.address, in CreateTurnClientSocket()
476 } else if (IPIsAny(Network()->GetBestIP())) { in OnSocketConnect()
824 !resolver_->GetResolvedAddress(Network()->GetBestIP().family(), in OnResolveResult()
Dtcp_port_unittest.cc151 ASSERT_EQ(kLocalAddr.ipaddr(), network->GetBestIP()); in TEST_F()
Dstun_port.cc219 rtc::SocketAddress(Network()->GetBestIP(), 0), min_port(), max_port()); in Init()
449 input, Network()->GetBestIP().family(), &resolved)) { in OnResolveResult()
Dport.cc594 rtc::IPAddress ip = network_->GetBestIP(); in IsCompatibleAddress()
Dturn_port_unittest.cc952 ASSERT_EQ(kLocalAddr1.ipaddr(), network->GetBestIP()); in TEST_F()
Dport_unittest.cc176 rtc::SocketAddress addr(Network()->GetBestIP(), min_port()); in PrepareAddress()
/external/webrtc/rtc_base/
Dnetwork_unittest.cc300 IPAddress ip = (*it)->GetBestIP(); in TEST_F()
997 EXPECT_EQ(ipv6_network.GetBestIP(), IPAddress()); in TEST_F()
998 EXPECT_TRUE(IPIsUnspec(ipv6_network.GetBestIP())); in TEST_F()
1002 EXPECT_EQ(ipv6_network.GetBestIP(), IPAddress()); in TEST_F()
1009 EXPECT_EQ(ipv6_network.GetBestIP(), static_cast<IPAddress>(ip)); in TEST_F()
1015 EXPECT_EQ(ipv6_network.GetBestIP(), static_cast<IPAddress>(ip)); in TEST_F()
1021 EXPECT_EQ(ipv6_network.GetBestIP(), static_cast<IPAddress>(ip)); in TEST_F()
1072 if (network->GetBestIP().family() == AF_INET) { in TEST_F()
1074 } else if (network->GetBestIP().family() == AF_INET6 && in TEST_F()
1075 !IPIsLoopback(network->GetBestIP())) { in TEST_F()
Dnetwork.h348 IPAddress GetBestIP() const;
352 IPAddress ip() const { return GetBestIP(); } in ip()
Dnetwork.cc74 IPAddress ip_a = a->GetBestIP(); in SortNetworks()
75 IPAddress ip_b = b->GetBestIP(); in SortNetworks()
451 *ipaddr = ipv6_network->GetBestIP(); in GetDefaultLocalAddress()
988 IPAddress Network::GetBestIP() const { in GetBestIP() function in rtc::Network
Dnat_unittest.cc248 const IPAddress& ip = (*it)->GetBestIP(); in TestPhysicalInternal()
/external/webrtc/p2p/client/
Dbasic_port_allocator.cc90 int a_family = GetAddressFamilyPriority(a->Network()->GetBestIP().family()); in ComparePort()
91 int b_family = GetAddressFamilyPriority(b->Network()->GetBestIP().family()); in ComparePort()
730 if (rtc::IPIsLinkLocal(network->GetBestIP())) { in GetNetworks()
793 networks[i]->GetBestIP().family() == AF_INET6) { in DoAllocate()
799 networks[i]->GetBestIP().family() == AF_INET6 && in DoAllocate()
1238 rtc::SocketAddress(network_->GetBestIP(), 0), in Init()
1274 if (!((network == network_) && (previous_best_ip_ == network->GetBestIP()))) { in DisableEquivalentPhases()
1342 previous_best_ip_ = network_->GetBestIP(); in Start()
1525 int local_ip_family = network_->GetBestIP().family(); in CreateTurnPort()
1531 << " Local address: " << network_->GetBestIP().ToSensitiveString(); in CreateTurnPort()
Dbasic_port_allocator_unittest.cc309 port->Network()->GetBestIP() == client_addr.ipaddr(); in CountPorts()
/external/webrtc/p2p/stunprober/
Dstun_prober.cc566 if (srflx_addr.ipaddr() == net->GetBestIP()) { in GetStats()
568 stats.host_ip = net->GetBestIP().ToString(); in GetStats()