diff options
author | ttuttle@chromium.org <ttuttle@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-16 21:43:17 +0000 |
---|---|---|
committer | ttuttle@chromium.org <ttuttle@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-16 21:43:17 +0000 |
commit | 967d1b53e827f9f4ceb18c0af7d3ff1c9584ec54 (patch) | |
tree | 1da4f71ebaa85c8d61e267033c46798f67850f3e /net/dns | |
parent | 48e8b40c844963aeded16f8e9c6ca8ecbf1587ee (diff) | |
download | chromium_src-967d1b53e827f9f4ceb18c0af7d3ff1c9584ec54.zip chromium_src-967d1b53e827f9f4ceb18c0af7d3ff1c9584ec54.tar.gz chromium_src-967d1b53e827f9f4ceb18c0af7d3ff1c9584ec54.tar.bz2 |
Label IPv6 reachability checks in NetLog
Chrome's internal DNS resolver checks whether the host currently has
global IPv6 connectivity by creating a socket connected to Google Public
DNS' IPv6 address. These show up in the NetLog as UDP_SOCKET objects
with a source dependency of the HOST_RESOLVER_IMPL_REQUEST.
This change adds an explicit IPV6_REACHABILITY_CHECK source type that
will show up instead, to clarify the purpose of the UDP sockets.
(Note that no packets are actually sent as a result of the checks; UDP
doesn't need to send any packets to connect, and the HostResolverImpl
doesn't send any data over the socket explicitly.)
BUG=331746
Review URL: https://codereview.chromium.org/141023002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245336 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/dns')
-rw-r--r-- | net/dns/host_resolver_impl.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/dns/host_resolver_impl.cc b/net/dns/host_resolver_impl.cc index f90df04..a1ab0e5 100644 --- a/net/dns/host_resolver_impl.cc +++ b/net/dns/host_resolver_impl.cc @@ -2155,7 +2155,12 @@ HostResolverImpl::Key HostResolverImpl::GetEffectiveKeyForRequest( 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x88 }; IPAddressNumber address(kIPv6Address, kIPv6Address + arraysize(kIPv6Address)); - bool rv6 = IsGloballyReachable(address, net_log); + BoundNetLog probe_net_log = BoundNetLog::Make( + net_log.net_log(), NetLog::SOURCE_IPV6_REACHABILITY_CHECK); + probe_net_log.BeginEvent(NetLog::TYPE_IPV6_REACHABILITY_CHECK, + net_log.source().ToEventParametersCallback()); + bool rv6 = IsGloballyReachable(address, probe_net_log); + probe_net_log.EndEvent(NetLog::TYPE_IPV6_REACHABILITY_CHECK); if (rv6) net_log.AddEvent(NetLog::TYPE_HOST_RESOLVER_IMPL_IPV6_SUPPORTED); |