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

Unified Diff: net/base/net_util_win.cc

Issue 9419053: Make GetNetworkList on Windows filter out 'down' interfaces, as on POSIX. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 10 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 | « no previous file | no next file » | 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 0455dab3cfaf1a9d2a27c032963a983c56db80fe..e256e4345489620cb44837be119104efca19e443 100644
--- a/net/base/net_util_win.cc
+++ b/net/base/net_util_win.cc
@@ -105,6 +105,10 @@ bool GetNetworkList(NetworkInterfaceList* networks) {
continue;
}
+ if (adapter->OperStatus != IfOperStatusUp) {
+ continue;
+ }
+
IP_ADAPTER_UNICAST_ADDRESS* address;
for (address = adapter->FirstUnicastAddress; address != NULL;
address = address->Next) {
wtc 2012/02/17 19:36:23 Comparing this code with the GetNetworkList functi
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698