diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-06-11 03:58:58 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-06-11 03:58:58 +0000 |
commit | 5e9ae70b739fde17ca73452a866900abb843c54f (patch) | |
tree | 34b32715c097282a72bc20784529bf82c5e01b0e /capture-pcap-util.h | |
parent | 3214a73332b86ab380f046e4bab2329433ea871c (diff) |
One more step in privilege separation.
Add a capture_interface_list(), which works similar to
get_interface_list() except that it forks dumpcap instead of calling
the pcap routines directly. Use it in the GUI.
Add a "-I" flag to dumpcap, which prints out verbose interface
information.
Tested under Windows and Linux.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22071 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture-pcap-util.h')
-rw-r--r-- | capture-pcap-util.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/capture-pcap-util.h b/capture-pcap-util.h index 545231704d..72b1f6742c 100644 --- a/capture-pcap-util.h +++ b/capture-pcap-util.h @@ -69,9 +69,10 @@ typedef struct { GList *get_interface_list(int *err, char **err_str); -/* Error values from "get_interface_list()". */ -#define CANT_GET_INTERFACE_LIST 0 /* error getting list */ -#define NO_INTERFACES_FOUND 1 /* list is empty */ +/* 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 CANT_RUN_DUMPCAP 3 /* problem running 'dumpcap -I l' */ void free_interface_list(GList *if_list); |