blob: 80d135a92c1f4638421354aebd7ac2ccb9560739 [file] [log] [blame]
Jonas Oreland5b6a4d82020-03-24 07:36:52 +01001/*
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
13namespace rtc {
14
15bool 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
21bool 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