diff options
author | mallinath@chromium.org <mallinath@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-19 09:40:28 +0000 |
---|---|---|
committer | mallinath@chromium.org <mallinath@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-19 09:40:28 +0000 |
commit | 24db3484576f5128c0584ed8d8777e4ccc5fff17 (patch) | |
tree | 8fe1924e9f289b9d4195ef80cda10a309199a6e4 /chrome_frame | |
parent | 17a80d1337ff3c1ce1f6033dbcfa5174e2959a70 (diff) | |
download | chromium_src-24db3484576f5128c0584ed8d8777e4ccc5fff17.zip chromium_src-24db3484576f5128c0584ed8d8777e4ccc5fff17.tar.gz chromium_src-24db3484576f5128c0584ed8d8777e4ccc5fff17.tar.bz2 |
Filter virtual network interfaces for p2p sessions.
For WebRTC virtual host scoped network interfaces are not useful, but if present they take processing time and webrtc applications keep sending STUN ping messages from virtual network interfaces.
This CL adding a policy for net::GetNetworkList method, which allows users of the method to include or exclude these interfaces.
R=agl@chromium.org,sergeyu@chromium.org
TBR=bbudge@chromium.org,ananta@chromium.org
Review URL: https://codereview.chromium.org/99133020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241830 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
-rw-r--r-- | chrome_frame/test/chrome_frame_test_utils.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome_frame/test/chrome_frame_test_utils.cc b/chrome_frame/test/chrome_frame_test_utils.cc index c614214..8dfc86e 100644 --- a/chrome_frame/test/chrome_frame_test_utils.cc +++ b/chrome_frame/test/chrome_frame_test_utils.cc @@ -712,7 +712,8 @@ std::string GetLocalIPv4Address() { std::string address; net::NetworkInterfaceList nic_list; - if (!net::GetNetworkList(&nic_list)) { + if (!net::GetNetworkList(&nic_list, + net::INCLUDE_HOST_SCOPE_VIRTUAL_INTERFACES)) { LOG(ERROR) << "GetNetworkList failed to look up non-loopback adapters. " << "Tests will be run over the loopback adapter, which may " << "result in hangs."; |