diff options
author | Francois-Xavier Le Bail <fx.lebail@yahoo.com> | 2015-10-01 13:46:58 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <fx.lebail@yahoo.com> | 2015-10-01 13:46:58 +0200 |
commit | 84779e79c95724e486aa302c43839d63db930fa4 (patch) | |
tree | 10ed618bc7acf65ed54a41139299f3b8531f4b8e | |
parent | fc7ae3fcf09ee640eec9bfe3b90576b1d99a4c52 (diff) | |
download | libpcap-84779e79c95724e486aa302c43839d63db930fa4.tar.gz |
Improve the error message to clarify the problem
-rw-r--r-- | sf-pcap.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |