Add 16-bit network id to the candidate signaling.
Also include that in the stun-ping request as part of the
network-info attribute.
Change the network cost to be 16 bits.
BUG=
Review URL: https://codereview.webrtc.org/1815473002
Cr-Commit-Position: refs/heads/master@{#12110}
diff --git a/webrtc/base/network.cc b/webrtc/base/network.cc
index 4f3b919..4780e2f 100644
--- a/webrtc/base/network.cc
+++ b/webrtc/base/network.cc
@@ -286,6 +286,7 @@
// 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_++);
// Also, we might have accumulated IPAddresses from the first
// step, set it here.
net->SetIPs(kv.second.ips, true);