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 <kallisti5@unixzen.com> Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
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;
|
||||
|
Loading…
Reference in New Issue
Block a user