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

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: rebase for ChromeOS 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
« no previous file with comments | « net/base/ip_endpoint_unittest.cc ('k') | net/base/network_interfaces_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..2357cd67a6f7bd831d6c12327da1cb68f63a4165 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().bytes());
}
}
networks->push_back(NetworkInterface(
name, name, if_nametoindex(name.c_str()), connection_type,
- address.address(), prefix_length, ip_attributes));
+ address.address().bytes(), prefix_length, ip_attributes));
}
}
« no previous file with comments | « net/base/ip_endpoint_unittest.cc ('k') | net/base/network_interfaces_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698