summaryrefslogtreecommitdiffstats
path: root/cloud_print
diff options
context:
space:
mode:
authormallinath@chromium.org <mallinath@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-19 09:40:28 +0000
committermallinath@chromium.org <mallinath@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-19 09:40:28 +0000
commit24db3484576f5128c0584ed8d8777e4ccc5fff17 (patch)
tree8fe1924e9f289b9d4195ef80cda10a309199a6e4 /cloud_print
parent17a80d1337ff3c1ce1f6033dbcfa5174e2959a70 (diff)
downloadchromium_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 'cloud_print')
-rw-r--r--cloud_print/gcp20/prototype/printer.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/cloud_print/gcp20/prototype/printer.cc b/cloud_print/gcp20/prototype/printer.cc
index 1d758f7..e5828261 100644
--- a/cloud_print/gcp20/prototype/printer.cc
+++ b/cloud_print/gcp20/prototype/printer.cc
@@ -111,7 +111,8 @@ const char kCdd[] =
net::IPAddressNumber GetLocalIp(const std::string& interface_name,
bool return_ipv6_number) {
net::NetworkInterfaceList interfaces;
- bool success = net::GetNetworkList(&interfaces);
+ bool success = net::GetNetworkList(
+ &interfaces, net::INCLUDE_HOST_SCOPE_VIRTUAL_INTERFACES);
DCHECK(success);
size_t expected_address_size = return_ipv6_number ? net::kIPv6AddressSize