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

Unified Diff: net/base/net_util.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.h ('k') | net/base/net_util_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_util.cc
diff --git a/net/base/net_util.cc b/net/base/net_util.cc
index bafc8354583f64b4381abbaa0168f6801a57763d..ee4838d09b1ebdd40633da282dfe5a5818d5d094 100644
--- a/net/base/net_util.cc
+++ b/net/base/net_util.cc
@@ -1784,17 +1784,21 @@ bool IsLocalhost(const std::string& host) {
return false;
}
-NetworkInterface::NetworkInterface() : network_prefix(0) {
+NetworkInterface::NetworkInterface()
+ : type(NETWORK_INTERFACE_UNKNOWN),
+ network_prefix(0) {
}
NetworkInterface::NetworkInterface(const std::string& name,
const std::string& friendly_name,
uint32 interface_index,
+ NetworkInterfaceType type,
const IPAddressNumber& address,
size_t network_prefix)
: name(name),
friendly_name(friendly_name),
interface_index(interface_index),
+ type(type),
address(address),
network_prefix(network_prefix) {
}
« no previous file with comments | « net/base/net_util.h ('k') | net/base/net_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698