diff options
author | Guy Harris <gharris@sonic.net> | 2022-06-03 18:00:22 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2022-06-03 18:00:41 -0700 |
commit | 08ab69f4fc5d432eb7de26ee8e33b40ea4b79744 (patch) | |
tree | eff06cc3da09aa6a2a15832c724eaed00ff7b15d /sf-pcap.c | |
parent | 04244a1b51e76981c0796c8f96e36827f7f2019c (diff) |
Linux USB: fix incorrect values for the packet length.
Correctly compute the "real" length for isochronous transfers.
When reading memory-mapped Linux capture files, fix up the "real" length
field, in case the file was written by a program doing a capture with
the bug.
Diffstat (limited to 'sf-pcap.c')
-rw-r--r-- | sf-pcap.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -708,6 +708,8 @@ pcap_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **data) if (p->swapped) swap_pseudo_headers(p->linktype, hdr, *data); + fixup_pcap_pkthdr(p->linktype, hdr, *data); + return (1); } |