diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-07-09 04:18:36 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-07-09 04:18:36 +0000 |
commit | 5a7e28ca4645f88850af498a9a28fa5dea0f14b4 (patch) | |
tree | 45c8b659a436d5f9f9942e24983e95bbc1430594 /file.h | |
parent | 5617c183683f2e421aa2367cefdcc67f427c5a29 (diff) | |
download | wireshark-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.h | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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 |