]> The Tcpdump Group git mirrors - libpcap/commit
Linux USB: make the capture file length fixup more conservative.
authorGuy Harris <[email protected]>
Thu, 16 Jun 2022 00:10:03 +0000 (17:10 -0700)
committerGuy Harris <[email protected]>
Thu, 16 Jun 2022 00:10:03 +0000 (17:10 -0700)
commitb4eeafb93955807464d8bb9327772fb217fcdd9a
treef67fc7c05296e8e33f24b31b1d8ce2362f43597b
parentbc594f185299d9d4e3b39ba94e91a5b9ca8a938d
Linux USB: make the capture file length fixup more conservative.

When retroactively fixing up capture file on-the-network lengths for
memory-apped Linux USB captures, only fix up the on-the-network length
if it has the value that would be expected from the old capture code.

In the fixup code, make sure it's both >= the proper length, as best we
can calculate it, and the captured length.
pcap-common.c
pcap-common.h
pcap-usb-linux-common.c
pcap-usb-linux-common.h
pcap-usb-linux.c