diff options
author | Gerald Combs <gerald@wireshark.org> | 2007-06-11 03:58:58 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2007-06-11 03:58:58 +0000 |
commit | e9f1a0b692e19854f9e550e56e6a4dd392d316ac (patch) | |
tree | 34b32715c097282a72bc20784529bf82c5e01b0e /capture_sync.h | |
parent | f07a01dd510a6ae5fb963123195c4f0e203216aa (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.
svn path=/trunk/; revision=22071
Diffstat (limited to 'capture_sync.h')
-rw-r--r-- | capture_sync.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/capture_sync.h b/capture_sync.h index a8b6e6edaf..5e3cb7c9e5 100644 --- a/capture_sync.h +++ b/capture_sync.h @@ -24,10 +24,10 @@ /** @file - * + * * Sync mode capture (internal interface). * - * Will start a new Wireshark child instance which will do the actual capture + * Will start a new Wireshark child instance which will do the actual capture * work. */ @@ -35,10 +35,10 @@ #define __CAPTURE_SYNC_H__ -/** +/** * Start a new capture session. * Create a capture child which is doing the real capture work. - * The various capture_input_... functions will be called, if something had + * The various capture_input_... functions will be called, if something had * happened. * * Most of the parameters are passed through the global capture_opts. @@ -46,7 +46,7 @@ * @param capture_opts the options * @return TRUE if a capture could be started, FALSE if not */ -extern gboolean +extern gboolean sync_pipe_start(capture_options *capture_opts); /** User wants to stop capturing, gracefully close the capture child */ @@ -55,12 +55,17 @@ sync_pipe_stop(capture_options *capture_opts); /** User wants to stop the program, just kill the child as soon as possible */ extern void -sync_pipe_kill(capture_options *capture_opts); +sync_pipe_kill(int fork_child); -/** does the parent signalled the child to stop */ +/** Has the parent signalled the child to stop? */ #ifdef _WIN32 extern gboolean signal_pipe_check_running(void); #endif +/** Get an interface list using dumpcap */ +extern int +sync_interface_list_open(gchar **msg); + + #endif /* capture_sync.h */ |