aboutsummaryrefslogtreecommitdiff
path: root/sf-pcap.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2022-06-03 18:00:22 -0700
committerGuy Harris <gharris@sonic.net>2022-06-03 18:00:41 -0700
commit08ab69f4fc5d432eb7de26ee8e33b40ea4b79744 (patch)
treeeff06cc3da09aa6a2a15832c724eaed00ff7b15d /sf-pcap.c
parent04244a1b51e76981c0796c8f96e36827f7f2019c (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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sf-pcap.c b/sf-pcap.c
index 78437031..35ca265e 100644
--- a/sf-pcap.c
+++ b/sf-pcap.c
@@ -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);
}