Lines Matching refs:family_
55 : family_(family) , in IPAddress()
62 : family_(family) , in IPAddress()
67 : family_(family), in IPAddress()
72 family_ = IPAddress::kFamilyIPv4; in IPAddress()
74 family_ = IPAddress::kFamilyIPv6; in IPAddress()
76 family_ = IPAddress::kFamilyUnknown; in IPAddress()
82 : family_(kFamilyUnknown), in IPAddress()
85 family_ = address_struct->sa_family; in IPAddress()
92 family_ = address_struct->sa_family; in IPAddress()
199 size_t address_length = GetAddressLength(family_); in SetAddressFromString()
206 if (inet_pton(family_, address_string.c_str(), address.GetData()) <= 0) { in SetAddressFromString()
226 prefix > GetMaxPrefixLength(family_)) { in SetAddressAndPrefixFromString()
235 address_ = ByteString(GetAddressLength(family_)); in SetAddressToDefault()
241 if (GetLength() != GetAddressLength(family_) || in IntoString()
242 !inet_ntop(family_, GetConstData(), address_buf, sizeof(address_buf))) { in IntoString()
259 if (family_ == kFamilyIPv4 && size >= sizeof(sockaddr_in)) { in IntoSockAddr()
262 } else if (family_ == kFamilyIPv6 && size >= sizeof(sockaddr_in6)) { in IntoSockAddr()
268 address_struct->sa_family = family_; in IntoSockAddr()
273 return family_ == b.family_ && address_.Equals(b.address_) && in Equals()
278 return family_ == b.family_ && address_.Equals(b.address_); in HasSameAddressAs()