зеркало из https://github.com/mozilla/gecko-dev.git
032f9ca0bc
Expose a tweaked version of nr_ice_get_local_addresses to allow callers to provide pre-fetched stun addrs if they are available. By default, the normal call to nr_ice_gather calls this with no pre-fetched stun addrs (read non-e10s). In e10s, the stun addrs are discovered on the main process and provided to nr_ice_get_local_addreses. When nr_ice_gather is called from the content process the local addresses have already been gathered. In the past, nr_ice_get_local_addresses also applied policy (by removing duplicate addrs, and, based on stun prefs, removing loopback and/or link_local addrs. This functionality has been moved to nr_ice_set_local_addresses where other policy is being applied (like default route only, forcing specific interfaces, and prioritization). Because we're now serializing nr_local_addr (wrapped by NrIceStunAddr), we can't assume that certain pointer references in the source nr_local_addr are correct when calling nr_local_addr_copy. New non-pointer-arithmetic version of setting up the pointer on the copied nr_local_addr is used. Also easier to understand when walking up to it the first time. MozReview-Commit-ID: KVRFl4dfr7J --HG-- extra : rebase_source : c0437700ad77ee3b7f98947d3505551ca9ed43e9 |
||
---|---|---|
.. | ||
TestSyncRunnable.cpp | ||
buffered_stun_socket_unittest.cpp | ||
dummysocket.h | ||
gtest_ringbuffer_dumper.h | ||
gtest_utils.h | ||
ice_unittest.cpp | ||
moz.build | ||
mtransport_test_utils.h | ||
multi_tcp_socket_unittest.cpp | ||
nrappkit_unittest.cpp | ||
proxy_tunnel_socket_unittest.cpp | ||
rlogconnector_unittest.cpp | ||
runnable_utils_unittest.cpp | ||
sctp_unittest.cpp | ||
simpletokenbucket_unittest.cpp | ||
sockettransportservice_unittest.cpp | ||
stunserver.cpp | ||
stunserver.h | ||
test_nr_socket_unittest.cpp | ||
transport_unittests.cpp | ||
turn_unittest.cpp |