aboutsummaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-07-09 04:18:36 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-07-09 04:18:36 +0000
commit5a7e28ca4645f88850af498a9a28fa5dea0f14b4 (patch)
tree45c8b659a436d5f9f9942e24983e95bbc1430594 /file.h
parent5617c183683f2e421aa2367cefdcc67f427c5a29 (diff)
downloadwireshark-5a7e28ca4645f88850af498a9a28fa5dea0f14b4.tar.gz
wireshark-5a7e28ca4645f88850af498a9a28fa5dea0f14b4.tar.bz2
wireshark-5a7e28ca4645f88850af498a9a28fa5dea0f14b4.zip
Added the ability to create a read-only ethereal, i.e., one that
doesn't link with libpcap, so no packet captures can be made. The "--disable-pcap" option has been added to the configure script. Docs have been updated. And the string buffer size in the simple_dialog() has been doubled so that Johan's e-mail address in the "About" dialogue window doesn't get chopped off. svn path=/trunk/; revision=351
Diffstat (limited to 'file.h')
-rw-r--r--file.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/file.h b/file.h
index 9662204a21..7424d95a63 100644
--- a/file.h
+++ b/file.h
@@ -1,7 +1,7 @@
/* file.h
* Definitions for file structures and routines
*
- * $Id: file.h,v 1.18 1999/07/07 22:51:39 gram Exp $
+ * $Id: file.h,v 1.19 1999/07/09 04:18:35 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -29,8 +29,15 @@
#include <sys/types.h>
#include <sys/time.h>
+#ifndef __WTAP_H__
#include <wtap.h>
+#endif
+
+#ifdef HAVE_LIBPCAP
+#ifndef lib_pcap_h
#include <pcap.h>
+#endif
+#endif
typedef struct bpf_program bpf_prog;
@@ -50,9 +57,11 @@ typedef struct _capture_file {
gint user_saved;/* Was capture file saved by user yet? */
wtap *wth; /* Wiretap session */
gchar *dfilter; /* Display filter string */
+ GNode *dfcode; /* Compiled display filter program */
+#ifdef HAVE_LIBPCAP
gchar *cfilter; /* Capture filter string */
bpf_prog fcode; /* Compiled capture filter program */
- GNode *dfcode; /* Compiled display filter program */
+#endif
/* XXX - I'm cheating for now. I'll hardcode 65536 here until I re-arrange
* more header files so that ethereal.h is split up into two files, a
* generic header and a gtk+-speficic header (or the gtk+ definitions are