From e2a9bbf856a66fd5758a793102fae02c2b0d27e7 Mon Sep 17 00:00:00 2001 From: kukosa Date: Tue, 4 Dec 2007 11:19:29 +0000 Subject: Support for RPCAP features in GUI (from Boris Misenov, see Bug 1366) - retrieving the list of remote PCAP interfaces - password authentication support - UDP data fransfer - packet sampling (available in WinPcap 4.x) etc. fix problem if non-default rpcap port is used git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23750 f5534014-38df-0310-8fa8-9805f1628bb7 --- capture_ui_utils.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'capture_ui_utils.c') diff --git a/capture_ui_utils.c b/capture_ui_utils.c index 1d4b523dc6..aaa20eeb79 100644 --- a/capture_ui_utils.c +++ b/capture_ui_utils.c @@ -319,11 +319,13 @@ get_if_name(const char *if_text) * it'll be followed by a blank if it separates the description * and the interface name. (We don't wire in "rpcap", in case we * support other protocols in the same syntax.) + * Unfortunately, another colon can be used in "rpcap://host:port/" + * before port. Check if colon is followed by digit. */ - if (strncmp(if_name, "://", 3) != 0) { + if ((strncmp(if_name, "://", 3) != 0) && !isdigit(if_name[1])) { /* - * OK, we've found a colon not followed by "//". Skip blanks - * following it. + * OK, we've found a colon followed neither by "//" nor by digit. + * Skip blanks following it. */ if_name++; while (*if_name == ' ') -- cgit v1.2.3