diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-09-10 10:07:34 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-09-10 16:26:57 +0200 |
commit | e2293be847464567fb59a532759e61c712893549 (patch) | |
tree | 382243478ec530059c7ae7ba9ced9478a139e4a9 /tcpdump.c | |
parent | d5ca317dbdd246205f88b62fea2e765341bc9706 (diff) | |
download | tcpdump-e2293be847464567fb59a532759e61c712893549.tar.gz |
Make the invalid snaplen message clearer
Diffstat (limited to 'tcpdump.c')
-rw-r--r-- | tcpdump.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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': |