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

Unified Diff: webrtc/base/network.cc

Issue 1815473002: Add 16-bit network id to the candidate signaling. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/base/network.cc
diff --git a/webrtc/base/network.cc b/webrtc/base/network.cc
index 4f3b91981e4f08cef9a318e1be96af00c54eece5..4780e2f88d463ce9a9862e9da9b74a8c04e324d7 100644
--- a/webrtc/base/network.cc
+++ b/webrtc/base/network.cc
@@ -286,6 +286,7 @@ void NetworkManagerBase::MergeNetworkList(const NetworkList& new_networks,
// This network is new. Place it in the network map.
merged_list.push_back(net);
networks_map_[key] = net;
+ net->set_id(next_available_network_id_++);
pthatcher1 2016/03/21 17:49:24 Should we skip the 0-value if it rolls over?
honghaiz3 2016/03/22 16:30:03 It is highly unlikely to roll over to 0. If a new
// Also, we might have accumulated IPAddresses from the first
// step, set it here.
net->SetIPs(kv.second.ips, true);

Powered by Google App Engine
This is Rietveld 408576698