From a39e5b9b4a38a2443a7cd34086c629a5adfbffdc Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Mon, 15 Jul 2013 23:58:47 +0000 Subject: 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 --- wiretap/libpcap.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'wiretap') 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; } -- cgit v1.2.1