diff options
Diffstat (limited to 'capture.h')
-rw-r--r-- | capture.h | 28 |
1 files changed, 7 insertions, 21 deletions
@@ -1,7 +1,7 @@ /* capture.h * Definitions for packet capture windows * - * $Id: capture.h,v 1.19 1999/10/02 06:26:45 guy Exp $ + * $Id: capture.h,v 1.20 1999/10/02 19:24:19 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -28,29 +28,15 @@ #ifdef HAVE_LIBPCAP -#ifndef lib_pcap_h -#include <pcap.h> -#endif - -/* The version of pcap.h that comes with some systems is missing these - * #defines. - */ - -#ifndef DLT_RAW -#define DLT_RAW 12 -#endif - -#ifndef DLT_SLIP_BSDOS -#define DLT_SLIP_BSDOS 13 -#endif - -#ifndef DLT_PPP_BSDOS -#define DLT_PPP_BSDOS 14 -#endif - /* Name we give to the child process when doing a "-S" or "-F" capture. */ #define CHILD_NAME "ethereal-capture" +extern int sync_mode; /* allow sync */ +extern int sync_pipe[2]; /* used to sync father */ +extern int fork_mode; /* fork a child to do the capture */ +extern int quit_after_cap; /* Makes a "capture only mode". Implies -k */ +extern gboolean capture_child; /* if this is the child for "-F"/"-S" */ + /* Open a specified file, or create a temporary file, and start a capture to the file in question. */ void do_capture(char *capfile_name); |