| 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/async_packet_socket.h" |
| 12 |
| 13 | namespace rtc { |
| 14 |
| 15 | PacketTimeUpdateParams::PacketTimeUpdateParams() = default; |
| 16 |
| 17 | PacketTimeUpdateParams::PacketTimeUpdateParams( |
| 18 | const PacketTimeUpdateParams& other) = default; |
| 19 |
| 20 | PacketTimeUpdateParams::~PacketTimeUpdateParams() = default; |
| 21 |
| 22 | PacketOptions::PacketOptions() = default; |
| 23 | PacketOptions::PacketOptions(DiffServCodePoint dscp) : dscp(dscp) {} |
| 24 | PacketOptions::PacketOptions(const PacketOptions& other) = default; |
| 25 | PacketOptions::~PacketOptions() = default; |
| 26 |
| 27 | AsyncPacketSocket::AsyncPacketSocket() = default; |
| 28 |
| 29 | AsyncPacketSocket::~AsyncPacketSocket() = default; |
| 30 |
| 31 | void CopySocketInformationToPacketInfo(size_t packet_size_bytes, |
| 32 | const AsyncPacketSocket& socket_from, |
| 33 | bool is_connectionless, |
| 34 | rtc::PacketInfo* info) { |
| 35 | info->packet_size_bytes = packet_size_bytes; |
| 36 | info->ip_overhead_bytes = socket_from.GetLocalAddress().ipaddr().overhead(); |
| 37 | } |
| 38 |
| 39 | } // namespace rtc |
| 40 |