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

Issue 1411253008: WebRTC should generate default private address even when adapter enumeration is disabled. (Closed)

Created:
5 years, 1 month ago by guoweis_webrtc
Modified:
5 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, rwolff_gocast.it, yujie_mao (webrtc), Andrew MacDonald, tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

WebRTC should generate default private address even when adapter enumeration is disabled. Introduce a DefaultAddressProvider such that rtc::Network can't access other part of NetworkManager. This also removes the hack of generating the loopback address. The dependency has been removed by https://codereview.chromium.org/1417023003/ BUG=webrtc:5061 R=pthatcher@webrtc.org Committed: https://crrev.com/9af97f89103d8f1f77b52a6ae77b8b7bcdc23f71 Cr-Commit-Position: refs/heads/master@{#10590}

Patch Set 1 #

Patch Set 2 : Add test case for UpdateDefaultPrivateAddress #

Patch Set 3 : add assert #

Patch Set 4 : Fix test issues where IPv6 might not be available #

Patch Set 5 : Fix windows build issue #

Patch Set 6 : missing one check when invoking default address provider #

Patch Set 7 : fix another test failures. #

Patch Set 8 : try check number of networks. #

Patch Set 9 : fix the default private ip test case #

Patch Set 10 : remove unused vars. #

Patch Set 11 : change the signature of GetDefaultPrivateAddress #

Total comments: 14

Patch Set 12 : address Justin comments #

Patch Set 13 : Remove bind since it's not necessary. #

Patch Set 14 : rename set_default_private_address to set_default_local_address #

Total comments: 33

Patch Set 15 : address Peter's comments. #

Total comments: 2

Patch Set 16 : missed some changes. #

Patch Set 17 : after rebase on master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+311 lines, -155 lines) Patch
M talk/app/webrtc/peerconnectioninterface.h View 2 chunks +0 lines, -4 lines 0 comments Download
M talk/app/webrtc/webrtcsession.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -6 lines 0 comments Download
M webrtc/base/fakenetwork.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +5 lines, -0 lines 0 comments Download
M webrtc/base/ipaddress.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/base/ipaddress.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +11 lines, -0 lines 0 comments Download
M webrtc/base/network.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 10 chunks +47 lines, -7 lines 0 comments Download
M webrtc/base/network.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 10 chunks +89 lines, -23 lines 0 comments Download
M webrtc/base/network_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +21 lines, -0 lines 0 comments Download
M webrtc/p2p/base/port_unittest.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M webrtc/p2p/base/portallocator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +7 lines, -3 lines 0 comments Download
M webrtc/p2p/base/stunport.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +16 lines, -13 lines 0 comments Download
M webrtc/p2p/base/stunport.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 7 chunks +29 lines, -12 lines 0 comments Download
M webrtc/p2p/client/basicportallocator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +6 lines, -24 lines 0 comments Download
M webrtc/p2p/client/portallocator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 7 chunks +77 lines, -60 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
guoweis_webrtc
PTAL.
5 years, 1 month ago (2015-10-28 05:51:07 UTC) #5
juberti
Reviewed the first half of the code. Main concern is around the sync socket call ...
5 years, 1 month ago (2015-10-28 23:57:40 UTC) #7
guoweis_webrtc
PTAL. https://codereview.webrtc.org/1411253008/diff/180001/webrtc/base/ipaddress.h File webrtc/base/ipaddress.h (right): https://codereview.webrtc.org/1411253008/diff/180001/webrtc/base/ipaddress.h#newcode183 webrtc/base/ipaddress.h:183: IPAddress GetWildcardIP(int family); On 2015/10/28 23:57:40, juberti wrote: ...
5 years, 1 month ago (2015-10-29 03:41:00 UTC) #8
guoweis_webrtc
On 2015/10/29 03:41:00, guoweis wrote: > PTAL. > > https://codereview.webrtc.org/1411253008/diff/180001/webrtc/base/ipaddress.h > File webrtc/base/ipaddress.h (right): > ...
5 years, 1 month ago (2015-10-30 16:38:13 UTC) #10
guoweis_webrtc
On 2015/10/30 16:38:13, guoweis wrote: > On 2015/10/29 03:41:00, guoweis wrote: > > PTAL. > ...
5 years, 1 month ago (2015-10-30 16:56:18 UTC) #11
guoweis_webrtc
On 2015/10/30 16:56:18, guoweis wrote: > On 2015/10/30 16:38:13, guoweis wrote: > > On 2015/10/29 ...
5 years, 1 month ago (2015-11-10 17:31:49 UTC) #12
pthatcher1
https://codereview.webrtc.org/1411253008/diff/260001/webrtc/base/network.cc File webrtc/base/network.cc (right): https://codereview.webrtc.org/1411253008/diff/260001/webrtc/base/network.cc#newcode204 webrtc/base/network.cc:204: ipv4_any_address_network_->set_default_address_provider(this); Why not just set the provider at the ...
5 years, 1 month ago (2015-11-10 18:52:35 UTC) #13
guoweis_webrtc
PTAL. https://codereview.webrtc.org/1411253008/diff/260001/webrtc/base/network.cc File webrtc/base/network.cc (right): https://codereview.webrtc.org/1411253008/diff/260001/webrtc/base/network.cc#newcode204 webrtc/base/network.cc:204: ipv4_any_address_network_->set_default_address_provider(this); On 2015/11/10 18:52:34, pthatcher1 wrote: > Why ...
5 years, 1 month ago (2015-11-10 20:37:30 UTC) #15
pthatcher1
lgtm, with comment nits https://codereview.webrtc.org/1411253008/diff/260001/webrtc/base/network.h File webrtc/base/network.h (right): https://codereview.webrtc.org/1411253008/diff/260001/webrtc/base/network.h#newcode61 webrtc/base/network.h:61: // a multi-homed endpoint. On ...
5 years, 1 month ago (2015-11-10 21:29:01 UTC) #16
guoweis_webrtc
On 2015/11/10 21:29:01, pthatcher1 wrote: > lgtm, with comment nits > > https://codereview.webrtc.org/1411253008/diff/260001/webrtc/base/network.h > File ...
5 years, 1 month ago (2015-11-10 21:33:35 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1411253008/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1411253008/320001
5 years, 1 month ago (2015-11-10 21:33:43 UTC) #20
guoweis_webrtc
Committed patchset #17 (id:340001) manually as 9af97f89103d8f1f77b52a6ae77b8b7bcdc23f71 (presubmit successful).
5 years, 1 month ago (2015-11-10 22:48:08 UTC) #21
commit-bot: I haz the power
5 years, 1 month ago (2015-11-10 22:48:13 UTC) #22
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/9af97f89103d8f1f77b52a6ae77b8b7bcdc23f71
Cr-Commit-Position: refs/heads/master@{#10590}

Powered by Google App Engine
This is Rietveld 408576698