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

Unified Diff: net/base/net_util_posix.cc

Issue 231973003: Adding network interface type param to net::NetworkInterface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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.cc ('k') | net/base/net_util_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_util_posix.cc
diff --git a/net/base/net_util_posix.cc b/net/base/net_util_posix.cc
index 080f9b0e55a42e8725761f75cf3584d059d062ec..95e3bbc982ac3c795b12924224aca2ab69d3bd7d 100644
--- a/net/base/net_util_posix.cc
+++ b/net/base/net_util_posix.cc
@@ -108,7 +108,8 @@ bool GetNetworkList(NetworkInterfaceList* networks, int policy) {
CHECK(base::StringToUint(network_tokenizer.token(), &index));
networks->push_back(
- NetworkInterface(name, name, index, address, network_prefix));
+ NetworkInterface(name, name, index, NETWORK_INTERFACE_UNKNOWN,
+ address, network_prefix));
}
return true;
#else
@@ -208,7 +209,7 @@ bool GetNetworkList(NetworkInterfaceList* networks, int policy) {
}
}
network_info.interface = NetworkInterface(
- name, name, if_nametoindex(name.c_str()),
+ name, name, if_nametoindex(name.c_str()), NETWORK_INTERFACE_UNKNOWN,
address.address(), net_mask);
network_infos.push_back(NetworkInterfaceInfo(network_info));
« no previous file with comments | « net/base/net_util.cc ('k') | net/base/net_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698