aboutsummaryrefslogtreecommitdiffstats
path: root/capture.h
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2007-06-11 03:58:58 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2007-06-11 03:58:58 +0000
commit5e9ae70b739fde17ca73452a866900abb843c54f (patch)
tree34b32715c097282a72bc20784529bf82c5e01b0e /capture.h
parent3214a73332b86ab380f046e4bab2329433ea871c (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.h')
-rw-r--r--capture.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/capture.h b/capture.h
index c362dae5e5..f94883c561 100644
--- a/capture.h
+++ b/capture.h
@@ -33,7 +33,7 @@
#include "capture_opts.h"
-/**
+/**
* Start a capture session.
*
* @param capture_opts the numerous capture options
@@ -81,5 +81,10 @@ extern void capture_input_cfilter_error_message(capture_options *capture_opts, c
*/
extern void capture_input_closed(capture_options *capture_opts);
+/**
+ * Fetch the interface list from a child process.
+ */
+extern GList *capture_interface_list(int *err, char **err_str);
+
#endif /* capture.h */