aboutsummaryrefslogtreecommitdiffstats
path: root/capture_ifinfo.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-12-29 22:49:49 +0000
committerGuy Harris <guy@alum.mit.edu>2011-12-29 22:49:49 +0000
commit3864d5d19d5757ce74d5d282e36382a7fde1301f (patch)
treed2318cee0e6add2146cf4ae1e06723c92fe291ed /capture_ifinfo.h
parent21f5ea24e4334afc1fc814bb9a510980921dd1b1 (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_ifinfo.h')
-rw-r--r--capture_ifinfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/capture_ifinfo.h b/capture_ifinfo.h
index e96dfb6cfb..20207aedcf 100644
--- a/capture_ifinfo.h
+++ b/capture_ifinfo.h
@@ -64,6 +64,7 @@ extern GList *capture_interface_list(int *err, char **err_str);
/* Error values from "get_interface_list()/capture_interface_list()". */
#define CANT_GET_INTERFACE_LIST 1 /* error getting list */
#define NO_INTERFACES_FOUND 2 /* list is empty */
+#define DONT_HAVE_PCAP 3 /* couldn't load WinPcap */
void free_interface_list(GList *if_list);