diff options
author | Martin Sehnoutka <msehnout@redhat.com> | 2017-03-27 14:55:05 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-03-28 16:23:59 +0000 |
commit | 8efd42c4aa708e53bcb383e79c535137d6d0cade (patch) | |
tree | 3f3bb357f958fae932c72444e9dc684b38054f60 /ui | |
parent | 172107521b8be56911ce467b837ba047db40d0bb (diff) |
Reflect new default value of snaplen in man pages.
Default value for snaplen is defined in wiretap/wtap.h:
#define WTAP_MAX_PACKET_SIZE 262144
and used in capture_opts.c:
capture_opts->default_options.snaplen =
WTAP_MAX_PACKET_SIZE;
but help and man pages don't reflect this change.
Change-Id: I35ddf1e8b7ffd657f4e01b3fe6b4c44c9acece2b
Reviewed-on: https://code.wireshark.org/review/20738
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/commandline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/commandline.c b/ui/commandline.c index 24e44aae88..d200c31696 100644 --- a/ui/commandline.c +++ b/ui/commandline.c @@ -93,7 +93,7 @@ commandline_print_usage(gboolean for_help_option) { fprintf(output, "Capture interface:\n"); fprintf(output, " -i <interface> name or idx of interface (def: first non-loopback)\n"); fprintf(output, " -f <capture filter> packet filter in libpcap filter syntax\n"); - fprintf(output, " -s <snaplen> packet snapshot length (def: 65535)\n"); + fprintf(output, " -s <snaplen> packet snapshot length (def: %u)\n", WTAP_MAX_PACKET_SIZE); fprintf(output, " -p don't capture in promiscuous mode\n"); fprintf(output, " -k start capturing immediately (def: do nothing)\n"); fprintf(output, " -S update packet display when new packets are captured\n"); |