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

Unified Diff: net/base/net_util_win.cc

Issue 100703002: Added net::NetworkInterface::interface_index. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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') | 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 b44836ce3b569b9faf35099b9e6423b1300dee58..d0efe392dc2f48a3c87b8fd8b6ed9f572e560578 100644
--- a/net/base/net_util_win.cc
+++ b/net/base/net_util_win.cc
@@ -200,8 +200,10 @@ bool GetNetworkList(NetworkInterfaceList* networks) {
}
}
}
+ uint32 index =
+ (family == AF_INET) ? adapter->IfIndex : adapter->Ipv6IfIndex;
networks->push_back(
- NetworkInterface(adapter->AdapterName, endpoint.address(),
+ NetworkInterface(adapter->AdapterName, index, endpoint.address(),
net_prefix));
}
}
« no previous file with comments | « net/base/net_util_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698