Home
last modified time | relevance | path

Searched refs:scope_id (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Connectivity/staticlibs/netd/libnetdutils/include/netdutils/
DInternetAddresses.h40 uint32_t scope_id{0U};
50 (a.scope_id != b.scope_id)) {
97 return (a.scope_id < b.scope_id);
142 IPAddress(const in6_addr& ipv6, uint32_t scope_id) in IPAddress() argument
147 usesScopedIds(ipv6) ? scope_id : 0U, in IPAddress()
149 IPAddress(const IPAddress& ip, uint32_t scope_id) : IPAddress(ip) { in IPAddress() argument
150 mData.scope_id = (family() == AF_INET6 && usesScopedIds(mData.ip.v6)) ? scope_id : 0U; in IPAddress()
157 constexpr uint32_t scope_id() const noexcept { return mData.scope_id; } in scope_id() function
181 mData.scope_id = 0U; in IPAddress()
185 if (usesScopedIds(ipdata.ip.v6)) mData.scope_id = ipdata.scope_id; in IPAddress()
[all …]
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/
DInternetAddresses.cpp54 if (mData.family == AF_INET6 && mData.scope_id > 0) { in toString()
55 return StringPrintf("%s%%%u", repr, mData.scope_id); in toString()
DInternetAddressesTest.cpp134 EXPECT_EQ(0U, ones.scope_id()); in TEST()
136 EXPECT_EQ(0U, ones22.scope_id()); in TEST()
139 EXPECT_EQ(0U, ones23.scope_id()); in TEST()
148 EXPECT_EQ(22U, fe80_intf22.scope_id()); in TEST()
/packages/modules/DnsResolver/
DDns64Configuration.cpp202 if (pfx.ip().family() != AF_INET6 || pfx.ip().scope_id() != 0) { in reportNat64PrefixStatus()