Home | History | Annotate | Download | only in net

Lines Matching full:ipaddress

41 const IPAddress::Family IPAddress::kFamilyUnknown = AF_UNSPEC;
43 const IPAddress::Family IPAddress::kFamilyIPv4 = AF_INET;
45 const IPAddress::Family IPAddress::kFamilyIPv6 = AF_INET6;
48 const char IPAddress::kFamilyNameUnknown[] = "Unknown";
50 const char IPAddress::kFamilyNameIPv4[] = "IPv4";
52 const char IPAddress::kFamilyNameIPv6[] = "IPv6";
54 IPAddress::IPAddress(Family family, const ByteString& address)
59 IPAddress::IPAddress(Family family,
66 IPAddress::IPAddress(Family family)
70 IPAddress::IPAddress(std::string ip_string)
72 family_ = IPAddress::kFamilyIPv4;
74 family_ = IPAddress::kFamilyIPv6;
76 family_ = IPAddress::kFamilyUnknown;
81 IPAddress::IPAddress(const sockaddr* address_struct, size_t size)
99 IPAddress::~IPAddress() {}
102 size_t IPAddress::GetAddressLength(Family family) {
114 size_t IPAddress::GetMaxPrefixLength(Family family) {
118 size_t IPAddress::GetMinPrefixLength() const {
142 size_t IPAddress::GetPrefixLengthFromMask(Family family, const string& mask) {
164 IPAddress IPAddress::GetAddressMaskFromPrefix(Family family, size_t prefix) {
183 return IPAddress(family, address_bytes);
187 string IPAddress::GetAddressFamilyName(Family family) {
198 bool IPAddress::SetAddressFromString(const string& address_string) {
213 bool IPAddress::SetAddressAndPrefixFromString(const string& address_string) {
234 void IPAddress::SetAddressToDefault() {
238 bool IPAddress::IntoString(string* address_string) const {
249 string IPAddress::ToString() const {
255 bool IPAddress::IntoSockAddr(sockaddr* address_struct, size_t size) const {
272 bool IPAddress::Equals(const IPAddress& b) const {
277 bool IPAddress::HasSameAddressAs(const IPAddress& b) const {
281 IPAddress IPAddress::MaskWith(const IPAddress& b) const {
289 return IPAddress(family(), address_bytes);
292 IPAddress IPAddress::MergeWith(const IPAddress& b) const {
300 return IPAddress(family(), address_bytes);
303 IPAddress IPAddress::GetNetworkPart() const {
307 IPAddress IPAddress::GetDefaultBroadcast() {
311 return MergeWith(IPAddress(family(), broadcast_bytes));
314 bool IPAddress::CanReachAddress(const IPAddress& b) const {
316 IPAddress b_prefixed(b);