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

Unified Diff: net/base/net_util_posix.cc

Issue 538243003: proposed interface change at //net for webrtc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split address_tracker_linux into a different CL. Created 6 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
Index: net/base/net_util_posix.cc
diff --git a/net/base/net_util_posix.cc b/net/base/net_util_posix.cc
index fbc3fcc8f6eac39f64150c69a3cec11d8eb43f51..7f88ef666ab1c0f448859d71a892107621e06191 100644
--- a/net/base/net_util_posix.cc
+++ b/net/base/net_util_posix.cc
@@ -140,9 +140,13 @@ bool GetNetworkList(NetworkInterfaceList* networks, int policy) {
CHECK(base::StringToUint(network_tokenizer.token(), &index));
networks->push_back(
- NetworkInterface(name, name, index,
+ NetworkInterface(name,
+ name,
+ index,
NetworkChangeNotifier::CONNECTION_UNKNOWN,
- address, network_prefix));
+ address,
+ network_prefix,
+ IP_ADDRESS_ATTRIBUTE_NONE));
}
return true;
#else
@@ -247,9 +251,13 @@ bool GetNetworkList(NetworkInterfaceList* networks, int policy) {
net_mask = MaskPrefixLength(netmask.address());
}
}
- network_info.interface = NetworkInterface(
- name, name, if_nametoindex(name.c_str()),
- connection_type, address.address(), net_mask);
+ network_info.interface = NetworkInterface(name,
+ name,
+ if_nametoindex(name.c_str()),
+ connection_type,
+ address.address(),
+ net_mask,
+ IP_ADDRESS_ATTRIBUTE_NONE);
network_infos.push_back(NetworkInterfaceInfo(network_info));
}
« net/base/net_util.h ('K') | « 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