Lines Matching refs:mData
36 switch (mData.family) { in toString()
40 const in_addr v4 = mData.ip.v4; in toString()
45 const in6_addr v6 = mData.ip.v6; in toString()
53 if (mData.family == AF_INET6 && mData.scope_id > 0) { in toString()
54 return StringPrintf("%s%%%u", repr, mData.scope_id); in toString()
95 if (length >= mData.cidrlen) return; in IPPrefix()
97 switch (mData.family) { in IPPrefix()
102 mData.ip.v4.s_addr &= htonl(mask); in IPPrefix()
103 mData.cidrlen = static_cast<uint8_t>(length); in IPPrefix()
110 mData.ip.v6.s6_addr[which] &= mask; in IPPrefix()
112 mData.ip.v6.s6_addr[i] = 0U; in IPPrefix()
114 mData.cidrlen = static_cast<uint8_t>(length); in IPPrefix()
125 return mData == empty; in isUninitialized()
151 return StringPrintf("%s/%d", ip().toString().c_str(), mData.cidrlen); in toString()
155 switch (mData.family) { in toString()
157 return StringPrintf("[%s]:%u", ip().toString().c_str(), mData.port); in toString()
159 return StringPrintf("%s:%u", ip().toString().c_str(), mData.port); in toString()