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

Issue 2983213002: Relanding: Move "max IPv6 networks" logic to BasicPortAllocator, and fix sorting. (Closed)

Created:
3 years, 5 months ago by Taylor Brandstetter
Modified:
3 years, 4 months ago
Reviewers:
Zhi Huang, pthatcher1
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Relanding: Move "max IPv6 networks" logic to BasicPortAllocator, and fix sorting. Relanding because the broken chromium test has been fixed: https://chromium-review.googlesource.com/582196 This CL moves the responsibility for restricting the number of IPv6 interfaces used for ICE to BasicPortAllocator. This is the right place to do it in the first place; it's where all the rest of the filtering occurs. And NetworkManager shouldn't need to know about ICE limitations; only the ICE classes should. Part of the reason I'm doing this is that I want to add a "max_ipv6_networks" API to RTCConfiguration, so that applications can override the default easily (see linked bug). But that means that PeerConnection would need to be able to call "set_max_ipv6_networks" on the underlying object that does the filtering, and that method isn't available on the "NetworkManager" base class. So rather than adding another method to a place it doesn't belong, I'm moving it to the place it does belong. In the process, I noticed that "CompareNetworks" is inconsistent with "SortNetworks"; the former orders interfaces alphabetically, and the latter reverse-alphabetically. I believe this was unintentional, and results in undesirable behavior (like "eth1" being preferred over "eth0"), so I'm fixing it and adding a test. BUG=webrtc:7703 Review-Url: https://codereview.webrtc.org/2983213002 Cr-Original-Commit-Position: refs/heads/master@{#19112} Committed: https://chromium.googlesource.com/external/webrtc/+/ad9561404c0cc007574eaedade581928aa3d24ef Review-Url: https://codereview.webrtc.org/2983213002 Cr-Commit-Position: refs/heads/master@{#19159} Committed: https://chromium.googlesource.com/external/webrtc/+/3427f538de4fce254ae6625d57b87aa4c6f66f5c

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fixing P2PTransportChannelMultihomedTest (was relying on ordering assumptions it shouldn't have beeā€¦ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -91 lines) Patch
M webrtc/p2p/base/p2ptransportchannel_unittest.cc View 1 5 chunks +15 lines, -20 lines 0 comments Download
M webrtc/p2p/base/portallocator.h View 4 chunks +26 lines, -8 lines 0 comments Download
M webrtc/p2p/client/basicportallocator.cc View 2 chunks +22 lines, -1 line 0 comments Download
M webrtc/p2p/client/basicportallocator_unittest.cc View 2 chunks +54 lines, -0 lines 0 comments Download
M webrtc/rtc_base/network.h View 2 chunks +3 lines, -4 lines 0 comments Download
M webrtc/rtc_base/network.cc View 4 chunks +2 lines, -18 lines 0 comments Download
M webrtc/rtc_base/network_unittest.cc View 3 chunks +26 lines, -40 lines 0 comments Download

Messages

Total messages: 27 (14 generated)
Taylor Brandstetter
Zhi, could you take a look at this since Peter is OOO? https://codereview.webrtc.org/2983213002/diff/1/webrtc/rtc_base/network_unittest.cc File webrtc/rtc_base/network_unittest.cc ...
3 years, 5 months ago (2017-07-20 23:36:12 UTC) #2
Zhi Huang
On 2017/07/20 23:36:12, Taylor Brandstetter wrote: > Zhi, could you take a look at this ...
3 years, 5 months ago (2017-07-21 06:11:50 UTC) #3
Zhi Huang
https://codereview.webrtc.org/2983213002/diff/1/webrtc/p2p/base/portallocator.h File webrtc/p2p/base/portallocator.h (right): https://codereview.webrtc.org/2983213002/diff/1/webrtc/p2p/base/portallocator.h#newcode110 webrtc/p2p/base/portallocator.h:110: constexpr int kDefaultMaxIPv6Networks = 5; Maybe use uint32_t like ...
3 years, 5 months ago (2017-07-21 06:13:46 UTC) #4
Taylor Brandstetter
https://codereview.webrtc.org/2983213002/diff/1/webrtc/p2p/base/portallocator.h File webrtc/p2p/base/portallocator.h (right): https://codereview.webrtc.org/2983213002/diff/1/webrtc/p2p/base/portallocator.h#newcode110 webrtc/p2p/base/portallocator.h:110: constexpr int kDefaultMaxIPv6Networks = 5; On 2017/07/21 06:13:45, Zhi ...
3 years, 5 months ago (2017-07-21 16:18:18 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2983213002/1
3 years, 5 months ago (2017-07-21 16:18:30 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_ubsan_vptr on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_ubsan_vptr/builds/14587) win_rel on master.tryserver.webrtc (JOB_FAILED, ...
3 years, 5 months ago (2017-07-21 16:27:01 UTC) #9
Taylor Brandstetter
I had to fix an ICE test that was relying on behavior it shouldn't have ...
3 years, 5 months ago (2017-07-21 17:22:58 UTC) #12
Zhi Huang
On 2017/07/21 17:22:58, Taylor Brandstetter wrote: > I had to fix an ICE test that ...
3 years, 5 months ago (2017-07-21 17:52:59 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2983213002/20001
3 years, 5 months ago (2017-07-21 18:00:30 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/external/webrtc/+/ad9561404c0cc007574eaedade581928aa3d24ef
3 years, 5 months ago (2017-07-21 18:04:02 UTC) #20
Taylor Brandstetter
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.webrtc.org/2984853002/ by deadbeef@webrtc.org. ...
3 years, 5 months ago (2017-07-21 19:59:32 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2983213002/20001
3 years, 4 months ago (2017-07-26 22:13:18 UTC) #24
commit-bot: I haz the power
3 years, 4 months ago (2017-07-26 23:09:41 UTC) #27
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/external/webrtc/+/3427f538de4fce254ae6625d5...

Powered by Google App Engine
This is Rietveld 408576698