summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <fx.lebail@yahoo.com>2015-10-01 13:46:58 +0200
committerFrancois-Xavier Le Bail <fx.lebail@yahoo.com>2015-10-01 13:46:58 +0200
commit84779e79c95724e486aa302c43839d63db930fa4 (patch)
tree10ed618bc7acf65ed54a41139299f3b8531f4b8e
parentfc7ae3fcf09ee640eec9bfe3b90576b1d99a4c52 (diff)
downloadlibpcap-84779e79c95724e486aa302c43839d63db930fa4.tar.gz
Improve the error message to clarify the problem
-rw-r--r--sf-pcap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sf-pcap.c b/sf-pcap.c
index 8d6e89a8..593a30db 100644
--- a/sf-pcap.c
+++ b/sf-pcap.c
@@ -503,7 +503,8 @@ pcap_next_packet(pcap_t *p, struct pcap_pkthdr *hdr, u_char **data)
if (hdr->caplen > MAXIMUM_SNAPLEN) {
snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
- "bogus savefile header");
+ "bogus savefile header: capture length %u, bigger "
+ "than maximum of %u", hdr->caplen, MAXIMUM_SNAPLEN);
return (-1);
}