Home
last modified time | relevance | path

Searched refs:scope_id (Results 1 – 3 of 3) 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);
141 IPAddress(const in6_addr& ipv6, uint32_t scope_id) in IPAddress() argument
146 usesScopedIds(ipv6) ? scope_id : 0U, in IPAddress()
148 IPAddress(const IPAddress& ip, uint32_t scope_id) : IPAddress(ip) { in IPAddress() argument
149 mData.scope_id = (family() == AF_INET6 && usesScopedIds(mData.ip.v6)) ? scope_id : 0U; in IPAddress()
156 constexpr uint32_t scope_id() const noexcept { return mData.scope_id; } in scope_id() function
180 mData.scope_id = 0U; in IPAddress()
184 if (usesScopedIds(ipdata.ip.v6)) mData.scope_id = ipdata.scope_id; in IPAddress()
[all …]
/system/netd/libnetdutils/
DInternetAddresses.cpp53 if (mData.family == AF_INET6 && mData.scope_id > 0) { in toString()
54 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()