diff options
author | Guy Harris <guy@alum.mit.edu> | 2009-06-02 19:06:05 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2009-06-02 19:06:05 +0000 |
commit | 7d5afce08f1e59a1c3bf448e968d4b2ae2224208 (patch) | |
tree | 333cd5680a6cd05dc7f23e570cafdebae6a31518 /wiretap/pcap-common.h | |
parent | 75af067043f15f47ccd731af8e0517e4c0bc44a7 (diff) |
When doing a seek-and-read, don't check the packet size, as we don't
have it (we have the size with the pseudo-header length already
removed); we've already read the packet, and thus have already checked
it. Fixes bug 3501.
svn path=/trunk/; revision=28607
Diffstat (limited to 'wiretap/pcap-common.h')
-rw-r--r-- | wiretap/pcap-common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/pcap-common.h b/wiretap/pcap-common.h index a058779454..a0a7da91d9 100644 --- a/wiretap/pcap-common.h +++ b/wiretap/pcap-common.h @@ -27,8 +27,8 @@ extern int wtap_wtap_encap_to_pcap_encap(int encap); extern int pcap_process_pseudo_header(wtap *wth, FILE_T fh, guint packet_size, - struct wtap_pkthdr *phdr, union wtap_pseudo_header *pseudo_header, - int *err, gchar **err_info); + gboolean check_packet_size, struct wtap_pkthdr *phdr, + union wtap_pseudo_header *pseudo_header, int *err, gchar **err_info); extern int pcap_get_phdr_size(int encap, const union wtap_pseudo_header *pseudo_header); |