summaryrefslogtreecommitdiff
path: root/extcap/sshdump.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2016-01-25 09:23:03 +0100
committerRoland Knall <rknall@gmail.com>2016-02-08 14:36:12 +0000
commit23c6241e52818586d63583830bf18dfa08edc1fc (patch)
tree1afc3458015b2ec0e82d31f1e8c8b14c8f77ed5e /extcap/sshdump.c
parentdb3795b4fbd03492565156e2864b51053825f76f (diff)
downloadwireshark-23c6241e52818586d63583830bf18dfa08edc1fc.tar.gz
sshdump: fix default value for capture filter.
Change-Id: I21c4d6fa6726165882ed104262b1e2b22557d8cd Reviewed-on: https://code.wireshark.org/review/13522 Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'extcap/sshdump.c')
-rw-r--r--extcap/sshdump.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/extcap/sshdump.c b/extcap/sshdump.c
index 6dcfb61547..9a273968bf 100644
--- a/extcap/sshdump.c
+++ b/extcap/sshdump.c
@@ -567,7 +567,10 @@ static int list_config(char *interface, unsigned int remote_port)
"{type=string}{default=%s}{tooltip=The remote dumpcap binary used "
"for capture.}\n", inc++, DEFAULT_CAPTURE_BIN);
printf("arg {number=%u}{call=--remote-filter}{display=Remote capture filter}"
- "{type=string}{default=%s}{tooltip=The remote capture filter}\n", inc++, ipfilter);
+ "{type=string}{tooltip=The remote capture filter}", inc++);
+ if (ipfilter)
+ printf("{default=%s}", ipfilter);
+ printf("\n");
printf("arg {number=%u}{call=--remote-count}{display=Packets to capture}"
"{type=unsigned}{default=0}{tooltip=The number of remote packets to capture. (Default: inf)}\n",
inc++);