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

Unified Diff: net/base/net_util_win.cc

Issue 23726043: Added NetworkInterface::network_prefix (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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/net_util_unittest.cc ('k') | net/dns/address_sorter_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_util_win.cc
diff --git a/net/base/net_util_win.cc b/net/base/net_util_win.cc
index 986af79eac7fe135bf4a781d14effc39257f42f5..7a2ec19988d772f43605b8db74a7e2ca1af0cc7a 100644
--- a/net/base/net_util_win.cc
+++ b/net/base/net_util_win.cc
@@ -169,7 +169,8 @@ bool GetNetworkList(NetworkInterfaceList* networks) {
if (endpoint.FromSockAddr(address->Address.lpSockaddr,
address->Address.iSockaddrLength)) {
std::string name = adapter->AdapterName;
- networks->push_back(NetworkInterface(name, endpoint.address()));
+ networks->push_back(NetworkInterface(name, endpoint.address(),
+ address->OnLinkPrefixLength));
}
}
}
« no previous file with comments | « net/base/net_util_unittest.cc ('k') | net/dns/address_sorter_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698