From 23c6241e52818586d63583830bf18dfa08edc1fc Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Mon, 25 Jan 2016 09:23:03 +0100 Subject: sshdump: fix default value for capture filter. Change-Id: I21c4d6fa6726165882ed104262b1e2b22557d8cd Reviewed-on: https://code.wireshark.org/review/13522 Reviewed-by: Roland Knall --- extcap/sshdump.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'extcap/sshdump.c') 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++); -- cgit v1.2.1