aboutsummaryrefslogtreecommitdiff
path: root/pcap-common.h
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 /pcap-common.h
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 'pcap-common.h')
-rw-r--r--pcap-common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pcap-common.h b/pcap-common.h
index 8795a829..a779afe9 100644
--- a/pcap-common.h
+++ b/pcap-common.h
@@ -50,4 +50,7 @@ extern int linktype_to_dlt(int linktype);
extern void swap_pseudo_headers(int linktype, struct pcap_pkthdr *hdr,
u_char *data);
+extern void fixup_pcap_pkthdr(int linktype, struct pcap_pkthdr *hdr,
+ u_char *data);
+
extern u_int max_snaplen_for_dlt(int dlt);