From 6b7fde33003da7719ad9b5d9511d5875ad6eb9ff Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sat, 30 Dec 2023 21:11:51 -0500 Subject: [PATCH] tcp_shell: Don't include dropped packets in the dump. Otherwise it's just confusing. Change-Id: Ic88550c05a957b06917cfc08d1163ffe5b2e0652 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7281 Reviewed-by: Alex von Gluck IV Reviewed-by: waddlesplash --- src/tests/system/network/tcp_shell/tcp_shell.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tests/system/network/tcp_shell/tcp_shell.cpp b/src/tests/system/network/tcp_shell/tcp_shell.cpp index 845d607c5a..bb489c08cf 100644 --- a/src/tests/system/network/tcp_shell/tcp_shell.cpp +++ b/src/tests/system/network/tcp_shell/tcp_shell.cpp @@ -1139,6 +1139,11 @@ dump_printf(net_buffer* buffer, int32 packetNumber, bool willBeDropped) static void dump_pcap(net_buffer* buffer, int32 packetNumber, bool willBeDropped) { + if (willBeDropped) { + printf(" \n"); + return; + } + const bigtime_t time = real_time_clock_usecs(); struct pcap_packet_header pcap_header;