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/p2p/base/port.h b/webrtc/p2p/base/port.h
index 65f82e4..4c5a150 100644
--- a/webrtc/p2p/base/port.h
+++ b/webrtc/p2p/base/port.h
@@ -296,7 +296,7 @@
void set_candidate_filter(uint32_t candidate_filter) {
candidate_filter_ = candidate_filter;
}
- int32_t network_cost() const { return network_cost_; }
+ int16_t network_cost() const { return network_cost_; }
protected:
enum {
@@ -403,7 +403,7 @@
// A virtual cost perceived by the user, usually based on the network type
// (WiFi. vs. Cellular). It takes precedence over the priority when
// comparing two connections.
- uint32_t network_cost_;
+ uint16_t network_cost_;
friend class Connection;
};