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

Issue 10855179: [net/dns] Resolve AF_UNSPEC on dual-stacked systems. Sort addresses according to RFC3484. (Closed)

Created:
8 years, 4 months ago by szym
Modified:
8 years, 4 months ago
Reviewers:
mmenke1, mmenke
CC:
chromium-reviews, pam+watch_chromium.org, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

[net/dns] Resolve AF_UNSPEC on dual-stacked systems. Sort addresses according to RFC3484. Original review: http://codereview.chromium.org/10442098/ BUG=113993 TEST=./net_unittests --gtest_filter=AddressSorter*:HostResolverImplDnsTest.DnsTaskUnspec Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=151750

Patch Set 1 #

Total comments: 2

Patch Set 2 : Disable test if have no AF_INET6. Fail sofly in AddressSorterWin. #

Patch Set 3 : add missing includes #

Patch Set 4 : Add expected result to test. #

Patch Set 5 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1554 lines, -111 lines) Patch
M net/base/host_resolver_impl.h View 1 chunk +6 lines, -3 lines 0 comments Download
M net/base/host_resolver_impl.cc View 1 2 3 4 7 chunks +128 lines, -34 lines 0 comments Download
M net/base/host_resolver_impl_unittest.cc View 3 chunks +55 lines, -3 lines 0 comments Download
M net/base/net_error_list.h View 1 chunk +3 lines, -0 lines 0 comments Download
M net/base/net_util.h View 1 chunk +8 lines, -0 lines 0 comments Download
M net/base/net_util.cc View 2 chunks +23 lines, -3 lines 0 comments Download
M net/base/net_util_unittest.cc View 1 chunk +23 lines, -0 lines 0 comments Download
A net/dns/address_sorter.h View 1 chunk +46 lines, -0 lines 0 comments Download
A net/dns/address_sorter_posix.h View 1 chunk +94 lines, -0 lines 0 comments Download
A net/dns/address_sorter_posix.cc View 1 chunk +428 lines, -0 lines 0 comments Download
A net/dns/address_sorter_posix_unittest.cc View 1 chunk +325 lines, -0 lines 0 comments Download
A net/dns/address_sorter_unittest.cc View 1 2 3 1 chunk +66 lines, -0 lines 0 comments Download
A net/dns/address_sorter_win.cc View 1 1 chunk +198 lines, -0 lines 0 comments Download
M net/dns/dns_client.h View 2 chunks +7 lines, -2 lines 0 comments Download
M net/dns/dns_client.cc View 3 chunks +9 lines, -1 line 0 comments Download
M net/dns/dns_response.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/dns/dns_response.cc View 1 chunk +1 line, -3 lines 0 comments Download
M net/dns/dns_response_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M net/dns/dns_test_util.h View 2 chunks +21 lines, -1 line 0 comments Download
M net/dns/dns_test_util.cc View 7 chunks +101 lines, -56 lines 0 comments Download
M net/net.gyp View 2 chunks +6 lines, -0 lines 0 comments Download
M net/tools/dns_fuzz_stub/dns_fuzz_stub.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
szym
http://codereview.chromium.org/10855179/diff/1/net/dns/address_sorter_win.cc File net/dns/address_sorter_win.cc (right): http://codereview.chromium.org/10855179/diff/1/net/dns/address_sorter_win.cc#newcode91 net/dns/address_sorter_win.cc:91: DCHECK_NE(INVALID_SOCKET, sock); This could fail on systems without ipv6 ...
8 years, 4 months ago (2012-08-15 17:16:48 UTC) #1
szym
I decided to go the lenient way. PTAL. On 2012/08/15 17:16:48, szym wrote: > http://codereview.chromium.org/10855179/diff/1/net/dns/address_sorter_win.cc ...
8 years, 4 months ago (2012-08-15 17:29:17 UTC) #2
mmenke1
http://codereview.chromium.org/10855179/diff/1/net/dns/address_sorter_win.cc File net/dns/address_sorter_win.cc (right): http://codereview.chromium.org/10855179/diff/1/net/dns/address_sorter_win.cc#newcode91 net/dns/address_sorter_win.cc:91: DCHECK_NE(INVALID_SOCKET, sock); On 2012/08/15 17:16:48, szym wrote: > This ...
8 years, 4 months ago (2012-08-15 17:36:53 UTC) #3
szym
> May want to delete all the IPv6 addresses in this case, at least if ...
8 years, 4 months ago (2012-08-15 18:10:39 UTC) #4
mmenke
On 2012/08/15 18:10:39, szym wrote: > > May want to delete all the IPv6 addresses ...
8 years, 4 months ago (2012-08-15 18:19:01 UTC) #5
szym
On 2012/08/15 18:19:01, Matt Menke wrote: > On 2012/08/15 18:10:39, szym wrote: > > > ...
8 years, 4 months ago (2012-08-15 18:24:10 UTC) #6
mmenke
LGTM
8 years, 4 months ago (2012-08-15 18:27:31 UTC) #7
commit-bot: I haz the power
8 years, 4 months ago (2012-08-15 18:28:20 UTC) #8

Powered by Google App Engine
This is Rietveld 408576698