diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-12-29 22:49:49 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-12-29 22:49:49 +0000 |
commit | 3864d5d19d5757ce74d5d282e36382a7fde1301f (patch) | |
tree | d2318cee0e6add2146cf4ae1e06723c92fe291ed /capture_opts.c | |
parent | 21f5ea24e4334afc1fc814bb9a510980921dd1b1 (diff) |
Add an additional DONT_HAVE_PCAP return value from get_interface_list()
and capture_interface_list(). Return it if, on Windows, we ask for the
interface list but don't have WinPcap installed. Handle it like
CANT_GET_INTERFACE_LIST.
svn path=/trunk/; revision=40334
Diffstat (limited to 'capture_opts.c')
-rw-r--r-- | capture_opts.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/capture_opts.c b/capture_opts.c index 8f7325e1ea..f200be3735 100644 --- a/capture_opts.c +++ b/capture_opts.c @@ -471,6 +471,7 @@ capture_opts_add_iface_opt(capture_options *capture_opts, const char *optarg_str switch (err) { case CANT_GET_INTERFACE_LIST: + case DONT_HAVE_PCAP: cmdarg_err("%s", err_str); g_free(err_str); break; @@ -842,6 +843,7 @@ gboolean capture_opts_trim_iface(capture_options *capture_opts, const char *capt switch (err) { case CANT_GET_INTERFACE_LIST: + case DONT_HAVE_PCAP: cmdarg_err("%s", err_str); g_free(err_str); break; |