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 <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Augustin Cavalier
2023-12-31 03:36:27 +00:00
committed by waddlesplash
parent dc8bc8c1ce
commit 6b7fde3300
@@ -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(" <DROPPED>\n");
return;
}
const bigtime_t time = real_time_clock_usecs();
struct pcap_packet_header pcap_header;