Add a dialog box for constructing expressions that test a field in the
[obnox/wireshark/wip.git] / capture.h
index d40fa30c03228daedcece6019050d3eeca524757..bc65142e321aa577765fed3e60c397317c16cc72 100644 (file)
--- a/capture.h
+++ b/capture.h
@@ -1,7 +1,7 @@
 /* capture.h
  * Definitions for packet capture windows
  *
- * $Id: capture.h,v 1.13 1999/08/18 16:28:22 gram Exp $
+ * $Id: capture.h,v 1.24 2000/10/11 06:01:14 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
 
 #ifdef HAVE_LIBPCAP
 
-#ifndef lib_pcap_h
-#include <pcap.h>
-#endif
+/* Name we give to the child process when doing a "-S" capture. */
+#define        CHILD_NAME      "ethereal-capture"
 
-/* The version of pcap.h that comes with some systems is missing these
- * #defines.
- */
-
-#ifndef DLT_RAW
-#define DLT_RAW 12
-#endif
+extern int promisc_mode; /* capture in promiscuous mode */
+extern int sync_mode;  /* fork a child to do the capture, and sync between them */
+extern int sync_pipe[2]; /* used to sync father */
+extern int quit_after_cap; /* Makes a "capture only mode". Implies -k */
+extern gboolean capture_child; /* if this is the child for "-S" */
 
-#ifndef DLT_SLIP_BSDOS
-#define DLT_SLIP_BSDOS 13
-#endif
+/* Open a specified file, or create a temporary file, and start a capture
+   to the file in question. */
+void   do_capture(char *capfile_name);
 
-#ifndef DLT_PPP_BSDOS
-#define DLT_PPP_BSDOS 14
-#endif
+/* Do the low-level work of a capture. */
+int    capture(void);
 
-
-void   capture_prep_cb(GtkWidget *, gpointer);
-void   capture(void);
+/* Stop a capture from a menu item. */
+void   capture_stop(void);
 
 #endif /* HAVE_LIBPCAP */
+
+#define EMPTY_FILTER ""
 #endif /* capture.h */