Skip to content

Commit

Permalink
roc-streaminggh-674 Add receive timestamp (RTS) to packet printer
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv committed Jan 30, 2024
1 parent e34f0b5 commit 26af7d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/internal_modules/roc_packet/print_packet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ void print_packet(const Packet& pkt, int flags) {
packet_flags_to_str(pkt.flags()).c_str());

if (pkt.udp()) {
p.writef(" udp: src=%s dst=%s\n",
p.writef(" udp: src=%s dst=%s rts=%lld\n",
address::socket_addr_to_str(pkt.udp()->src_addr).c_str(),
address::socket_addr_to_str(pkt.udp()->dst_addr).c_str());
address::socket_addr_to_str(pkt.udp()->dst_addr).c_str(),
(long long)pkt.udp()->receive_timestamp);
}

if (pkt.rtp()) {
Expand Down

0 comments on commit 26af7d0

Please sign in to comment.