aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-03-11 07:10:48 +0000
committerGuy Harris <guy@alum.mit.edu>2012-03-11 07:10:48 +0000
commit42df48aab06f55898b63b20c776b3576c08373a2 (patch)
treee7c512c405a672a1e5e27bf277b60e8683afc436
parent7676b02551b436bc98eddf1a04ee9c93068a872a (diff)
capture_opts_add_opt() does just fine at adding an interface to the
capture options, so don't special-case the -i option. svn path=/trunk/; revision=41477
-rw-r--r--ui/gtk/main.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/ui/gtk/main.c b/ui/gtk/main.c
index a3205b3836..86fdedff13 100644
--- a/ui/gtk/main.c
+++ b/ui/gtk/main.c
@@ -2476,6 +2476,7 @@ main(int argc, char *argv[])
case 'k': /* Start capture immediately */
case 'H': /* Hide capture info dialog box */
case 'p': /* Don't capture in promiscuous mode */
+ case 'i': /* Use interface x */
#ifdef HAVE_PCAP_CREATE
case 'I': /* Capture in monitor mode, if available */
#endif
@@ -2504,18 +2505,6 @@ main(int argc, char *argv[])
break;
#endif
-#ifdef HAVE_LIBPCAP
- case 'i': /* Use interface xxx */
- status = capture_opts_add_iface_opt(&global_capture_opts, optarg);
- if (status != 0) {
- exit(status);
- }
-#else
- capture_option_specified = TRUE;
- arg_error = TRUE;
-#endif
- break;
-
/*** all non capture option specific ***/
case 'C':
/* Configuration profile settings were already processed just ignore them this time*/