Home
last modified time | relevance | path

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

/system/netd/libnetdutils/include/netdutils/
DInternetAddresses.h39 uint32_t scope_id{0U};
49 (a.scope_id != b.scope_id)) {
96 return (a.scope_id < b.scope_id);
131 IPAddress(const in6_addr& ipv6, uint32_t scope_id) in IPAddress() argument
136 usesScopedIds(ipv6) ? scope_id : 0U, in IPAddress()
138 IPAddress(const IPAddress& ip, uint32_t scope_id) : IPAddress(ip) { in IPAddress() argument
139 mData.scope_id = (family() == AF_INET6 && usesScopedIds(mData.ip.v6)) ? scope_id : 0U; in IPAddress()
146 constexpr uint32_t scope_id() const noexcept { return mData.scope_id; } in scope_id() function
170 mData.scope_id = 0U; in IPAddress()
174 if (usesScopedIds(ipdata.ip.v6)) mData.scope_id = ipdata.scope_id; in IPAddress()
[all …]
/system/netd/libnetdutils/
DInternetAddresses.cpp51 if (mData.family == AF_INET6 && mData.scope_id > 0) { in toString()
52 return StringPrintf("%s%%%u", repr, mData.scope_id); in toString()
DInternetAddressesTest.cpp133 EXPECT_EQ(0U, ones.scope_id()); in TEST()
135 EXPECT_EQ(0U, ones22.scope_id()); in TEST()
138 EXPECT_EQ(0U, ones23.scope_id()); in TEST()
147 EXPECT_EQ(22U, fe80_intf22.scope_id()); in TEST()
/system/netd/resolv/
DDns64Configuration.cpp196 if (pfx.ip().family() != AF_INET6 || pfx.ip().scope_id() != 0) { in reportNat64PrefixStatus()