aboutsummaryrefslogtreecommitdiff
path: root/p2p/base/p2p_transport_channel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'p2p/base/p2p_transport_channel.cc')
-rw-r--r--p2p/base/p2p_transport_channel.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/p2p/base/p2p_transport_channel.cc b/p2p/base/p2p_transport_channel.cc
index 4e18cd43cb..4e56d161ab 100644
--- a/p2p/base/p2p_transport_channel.cc
+++ b/p2p/base/p2p_transport_channel.cc
@@ -1682,8 +1682,7 @@ void P2PTransportChannel::SwitchSelectedConnection(Connection* conn,
selected_connection_->remote_candidate().network_id();
network_route_->last_sent_packet_id = last_sent_packet_id_;
network_route_->packet_overhead =
- GetIpOverhead(
- selected_connection_->local_candidate().address().family()) +
+ selected_connection_->local_candidate().address().ipaddr().overhead() +
GetProtocolOverhead(selected_connection_->local_candidate().protocol());
} else {
RTC_LOG(LS_INFO) << ToString() << ": No selected connection";