Home
last modified time | relevance | path

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

/external/webrtc/rtc_base/
Dip_address.h130 class RTC_EXPORT InterfaceAddress : public IPAddress {
132 InterfaceAddress() : ipv6_flags_(IPV6_ADDRESS_FLAG_NONE) {} in InterfaceAddress() function
134 explicit InterfaceAddress(IPAddress ip) in InterfaceAddress() function
137 InterfaceAddress(IPAddress addr, int ipv6_flags) in InterfaceAddress() function
140 InterfaceAddress(const in6_addr& ip6, int ipv6_flags) in InterfaceAddress() function
143 InterfaceAddress(const InterfaceAddress& other) = default;
144 const InterfaceAddress& operator=(const InterfaceAddress& other);
146 bool operator==(const InterfaceAddress& other) const;
147 bool operator!=(const InterfaceAddress& other) const;
161 InterfaceAddress* out);
Difaddrs_converter.cc21 InterfaceAddress* ip, in ConvertIfAddrsToIPAddress()
25 *ip = InterfaceAddress(IPAddress( in ConvertIfAddrsToIPAddress()
36 *ip = InterfaceAddress( in ConvertIfAddrsToIPAddress()
Dip_address.cc201 bool InterfaceAddress::operator==(const InterfaceAddress& other) const { in operator ==()
206 bool InterfaceAddress::operator!=(const InterfaceAddress& other) const { in operator !=()
210 const InterfaceAddress& InterfaceAddress::operator=( in operator =()
211 const InterfaceAddress& other) { in operator =()
217 std::string InterfaceAddress::ToString() const { in ToString()
301 bool IPFromString(const std::string& str, int flags, InterfaceAddress* out) { in IPFromString()
307 *out = InterfaceAddress(ip, flags); in IPFromString()
Dnetwork.h355 void AddIP(const InterfaceAddress& ip) { ips_.push_back(ip); } in AddIP()
356 void AddIP(const IPAddress& ip) { ips_.push_back(rtc::InterfaceAddress(ip)); } in AddIP()
360 bool SetIPs(const std::vector<InterfaceAddress>& ips, bool already_changed);
362 const std::vector<InterfaceAddress>& GetIPs() const { return ips_; } in GetIPs()
457 std::vector<InterfaceAddress> ips_;
Dnetwork.cc53 std::vector<InterfaceAddress> ips;
134 bool IsIgnoredIPv6(const InterfaceAddress& ip) { in IsIgnoredIPv6()
335 const std::vector<InterfaceAddress>& addresses = network->GetIPs(); in MergeNetworkList()
337 for (const InterfaceAddress& address : addresses) { in MergeNetworkList()
464 if (absl::c_any_of(ips, [&](const InterfaceAddress& existing_ip) { in GetNetworkFromAddress()
503 InterfaceAddress ip; in ConvertIfAddrs()
699 if (IsIgnoredIPv6(InterfaceAddress(ip))) { in CreateNetworks()
970 bool Network::SetIPs(const std::vector<InterfaceAddress>& ips, bool changed) { in SetIPs()
975 for (const InterfaceAddress& ip : ips) { in SetIPs()
997 InterfaceAddress selected_ip, ula_ip; in GetBestIP()
[all …]
Difaddrs_converter.h32 InterfaceAddress* ipaddress,
Dnetwork_unittest.cc599 UnorderedElementsAre(InterfaceAddress(check_ip), in TEST_F()
600 InterfaceAddress(ip))); in TEST_F()
603 EXPECT_THAT((*it)->GetIPs(), Not(Contains(InterfaceAddress(ip)))); in TEST_F()
644 EXPECT_THAT((*it)->GetIPs(), Not(Contains(InterfaceAddress(ip)))); in TEST_F()
936 EXPECT_EQ(list2[0]->GetIPs()[0], InterfaceAddress(ip1)); in TEST_F()
937 EXPECT_EQ(list2[0]->GetIPs()[1], InterfaceAddress(ip2)); in TEST_F()
985 InterfaceAddress ip; in TEST_F()
1092 InterfaceAddress ip1; in TEST_F()
Dip_address_unittest.cc954 InterfaceAddress addr1(kIPv6PublicAddr, IPV6_ADDRESS_FLAG_TEMPORARY); in TEST()
961 InterfaceAddress addr2 = addr1; in TEST()
967 InterfaceAddress addr3(addr1); in TEST()
973 InterfaceAddress addr4(kIPv6PublicAddr, IPV6_ADDRESS_FLAG_DEPRECATED); in TEST()
982 InterfaceAddress addr5(kIPv6LinkLocalAddr, IPV6_ADDRESS_FLAG_TEMPORARY); in TEST()
/external/rust/crates/nix/src/
Difaddrs.rs18 pub struct InterfaceAddress { struct
45 impl InterfaceAddress { argument
47 fn from_libc_ifaddrs(info: &libc::ifaddrs) -> InterfaceAddress { in from_libc_ifaddrs() argument
51 let mut addr = InterfaceAddress { in from_libc_ifaddrs()
89 type Item = InterfaceAddress;
94 Some(InterfaceAddress::from_libc_ifaddrs(ifaddr)) in next()
/external/webrtc/p2p/base/
Dtcp_port.cc368 port_->Network()->GetIPs(), [this](const rtc::InterfaceAddress& addr) { in TCPConnection()
452 [socket_address](const rtc::InterfaceAddress& addr) { in OnConnect()
Dtcp_port_unittest.cc174 networks_.back().AddIP(rtc::InterfaceAddress( in TEST_F()
Dturn_port.cc467 [socket_address](const rtc::InterfaceAddress& addr) { in OnSocketConnect()
Dturn_port_unittest.cc977 networks_.back().AddIP(rtc::InterfaceAddress( in TEST_F()
/external/rust/crates/nix/test/sys/
Dtest_socket.rs1163 fn loopback_address(family: AddressFamily) -> Option<nix::ifaddrs::InterfaceAddress> { in loopback_address() argument