diff options
author | Guy Harris <gharris@sonic.net> | 2022-06-15 17:10:03 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2022-06-15 17:10:03 -0700 |
commit | b4eeafb93955807464d8bb9327772fb217fcdd9a (patch) | |
tree | f67fc7c05296e8e33f24b31b1d8ce2362f43597b /pcap-common.h | |
parent | bc594f185299d9d4e3b39ba94e91a5b9ca8a938d (diff) |
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.
Diffstat (limited to 'pcap-common.h')
-rw-r--r-- | pcap-common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-common.h b/pcap-common.h index a779afe9..cc944ef6 100644 --- a/pcap-common.h +++ b/pcap-common.h @@ -51,6 +51,6 @@ 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); + const u_char *data); extern u_int max_snaplen_for_dlt(int dlt); |