aboutsummaryrefslogtreecommitdiffstats
path: root/capture.h
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-08-18 16:28:22 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-08-18 16:28:22 +0000
commitc1adce97623a8b75c3080fbd9295094068842239 (patch)
tree668b84cd0851badaa440d1c2948ba5ee83b4dd28 /capture.h
parent648ffa143521d947c01363c37a1c62b38ee45f57 (diff)
Re-arranged Ethereal's definitions of DLT_RAW et al. since capture.c
is the only file that uses them. I hope to avoid some compiler warnings with this. svn path=/trunk/; revision=512
Diffstat (limited to 'capture.h')
-rw-r--r--capture.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/capture.h b/capture.h
index 14555486de..d40fa30c03 100644
--- a/capture.h
+++ b/capture.h
@@ -1,7 +1,7 @@
/* capture.h
* Definitions for packet capture windows
*
- * $Id: capture.h,v 1.12 1999/08/15 22:31:22 guy Exp $
+ * $Id: capture.h,v 1.13 1999/08/18 16:28:22 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -32,6 +32,23 @@
#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
+
+
void capture_prep_cb(GtkWidget *, gpointer);
void capture(void);