Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1334)

Unified Diff: net/base/network_interfaces_mac.cc

Issue 1565303002: Change IPEndpoint::address() to return a net::IPAddress (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/base/network_interfaces_mac.cc
diff --git a/net/base/network_interfaces_mac.cc b/net/base/network_interfaces_mac.cc
index 8176c6c377540fe2777c19c69abd58b395e22689..300767a2b58c370d1e5e412ab4daf1796ce44baa 100644
--- a/net/base/network_interfaces_mac.cc
+++ b/net/base/network_interfaces_mac.cc
@@ -205,12 +205,12 @@ bool GetNetworkListImpl(NetworkInterfaceList* networks,
}
IPEndPoint netmask;
if (netmask.FromSockAddr(interface->ifa_netmask, addr_size)) {
- prefix_length = MaskPrefixLength(netmask.address());
+ prefix_length = MaskPrefixLength(netmask.address_number());
}
}
networks->push_back(NetworkInterface(
name, name, if_nametoindex(name.c_str()), connection_type,
- address.address(), prefix_length, ip_attributes));
+ address.address_number(), prefix_length, ip_attributes));
}
}

Powered by Google App Engine
This is Rietveld 408576698