From e2293be847464567fb59a532759e61c712893549 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Mon, 10 Sep 2018 10:07:34 +0200 Subject: Make the invalid snaplen message clearer --- tcpdump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tcpdump.c') diff --git a/tcpdump.c b/tcpdump.c index 65defd0d..7cd07634 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -1709,7 +1709,8 @@ main(int argc, char **argv) ndo->ndo_snaplen = strtol(optarg, &end, 0); if (optarg == end || *end != '\0' || ndo->ndo_snaplen < 0 || ndo->ndo_snaplen > MAXIMUM_SNAPLEN) - error("invalid snaplen %s", optarg); + error("invalid snaplen %s (must be >= 0 and <= %d)", + optarg, MAXIMUM_SNAPLEN); break; case 'S': -- cgit v1.2.1