summaryrefslogtreecommitdiff
path: root/wiretap/libpcap.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-07-15 23:58:47 +0000
committerEvan Huus <eapache@gmail.com>2013-07-15 23:58:47 +0000
commita39e5b9b4a38a2443a7cd34086c629a5adfbffdc (patch)
treeb11b7e9eda7040d4c7cd738801de4122ba565414 /wiretap/libpcap.c
parent1c50729f9f4b5914c852d2bba337858f21307cf2 (diff)
downloadwireshark-a39e5b9b4a38a2443a7cd34086c629a5adfbffdc.tar.gz
On the suggestion of Cal Turney, via
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8937 Don't warn if a file has packets larger than the global snapshot length. svn path=/trunk/; revision=50646
Diffstat (limited to 'wiretap/libpcap.c')
-rw-r--r--wiretap/libpcap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/wiretap/libpcap.c b/wiretap/libpcap.c
index 063ca3ef58..0fb0ed9d45 100644
--- a/wiretap/libpcap.c
+++ b/wiretap/libpcap.c
@@ -765,9 +765,15 @@ static int libpcap_read_header(wtap *wth, FILE_T fh, int *err, gchar **err_info,
return -1;
}
+ /* Disabling because this is not a fatal error, and packets that have
+ * one such packet probably have thousands. For discussion, see
+ * https://www.wireshark.org/lists/wireshark-dev/201307/msg00076.html
+ * and related messages. */
+#if 0
if (hdr->hdr.incl_len > wth->snapshot_length) {
g_warning("pcap: File has packet larger than file's snapshot length.");
}
+#endif
return bytes_read;
}