• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright 2020 The WebRTC Project Authors. All rights reserved.
3  *
4  *  Use of this source code is governed by a BSD-style license
5  *  that can be found in the LICENSE file in the root of the source
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 #include "rtc_base/network_route.h"
12 
13 namespace rtc {
14 
operator ==(const RouteEndpoint & other) const15 bool RouteEndpoint::operator==(const RouteEndpoint& other) const {
16   return adapter_type_ == other.adapter_type_ &&
17          adapter_id_ == other.adapter_id_ && network_id_ == other.network_id_ &&
18          uses_turn_ == other.uses_turn_;
19 }
20 
operator ==(const NetworkRoute & other) const21 bool NetworkRoute::operator==(const NetworkRoute& other) const {
22   return connected == other.connected && local == other.local &&
23       remote == other.remote && packet_overhead == other.packet_overhead &&
24       last_sent_packet_id == other.last_sent_packet_id;
25 }
26 
27 }  // namespace rtc
28