diff options
author | Tomas Kukosa <tomas.kukosa@siemens.com> | 2007-12-04 11:19:29 +0000 |
---|---|---|
committer | Tomas Kukosa <tomas.kukosa@siemens.com> | 2007-12-04 11:19:29 +0000 |
commit | 08bbd29c71b8068e419f95a7a8cb7332ef0a3a3d (patch) | |
tree | f0bdb59e0947e9cfeac882b6b58a4753af6511be /capture_ui_utils.c | |
parent | 48537a7a6505e68faadbed9837a4159c2758d442 (diff) | |
download | wireshark-08bbd29c71b8068e419f95a7a8cb7332ef0a3a3d.tar.gz wireshark-08bbd29c71b8068e419f95a7a8cb7332ef0a3a3d.tar.bz2 wireshark-08bbd29c71b8068e419f95a7a8cb7332ef0a3a3d.zip |
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
svn path=/trunk/; revision=23750
Diffstat (limited to 'capture_ui_utils.c')
-rw-r--r-- | capture_ui_utils.c | 8 |
1 files changed, 5 insertions, 3 deletions
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 == ' ') |