summaryrefslogtreecommitdiffstats
path: root/contrib/libpcap/pcap-int.h
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>2000-01-30 00:32:56 +0000
committerfenner <fenner@FreeBSD.org>2000-01-30 00:32:56 +0000
commitaae9bd2bccda7ddbeb438e8238ced9c4cd1e9d1d (patch)
treed7ccf2b8332af627d9692b32089580fd3967581f /contrib/libpcap/pcap-int.h
parentca0d84cb8bfc8789fd48ada56322a575c4a1aa68 (diff)
downloadFreeBSD-src-aae9bd2bccda7ddbeb438e8238ced9c4cd1e9d1d.zip
FreeBSD-src-aae9bd2bccda7ddbeb438e8238ced9c4cd1e9d1d.tar.gz
Virgin import of tcpdump.org libpcap v0.5
Diffstat (limited to 'contrib/libpcap/pcap-int.h')
-rw-r--r--contrib/libpcap/pcap-int.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/contrib/libpcap/pcap-int.h b/contrib/libpcap/pcap-int.h
index 02bb3a8..04e815a 100644
--- a/contrib/libpcap/pcap-int.h
+++ b/contrib/libpcap/pcap-int.h
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#) $Header: pcap-int.h,v 1.18 96/11/27 18:43:09 leres Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/pcap-int.h,v 1.20 1999/11/21 01:10:20 assar Exp $ (LBL)
*/
#ifndef pcap_int_h
@@ -97,6 +97,27 @@ struct pcap {
char errbuf[PCAP_ERRBUF_SIZE];
};
+/*
+ * This is a timeval as stored in disk in a dumpfile.
+ * It has to use the same types everywhere, independent of the actual
+ * `struct timeval'
+ */
+
+struct pcap_timeval {
+ bpf_int32 tv_sec; /* seconds */
+ bpf_int32 tv_usec; /* microseconds */
+};
+
+/*
+ * How a `pcap_pkthdr' is actually stored in the dumpfile.
+ */
+
+struct pcap_sf_pkthdr {
+ struct pcap_timeval ts; /* time stamp */
+ bpf_u_int32 caplen; /* length of portion present */
+ bpf_u_int32 len; /* length this packet (off wire) */
+};
+
int yylex(void);
#ifndef min
@@ -108,7 +129,7 @@ int pcap_offline_read(pcap_t *, int, pcap_handler, u_char *);
int pcap_read(pcap_t *, int cnt, pcap_handler, u_char *);
/* Ultrix pads to make everything line up on a nice boundary */
-#if defined(ultrix) || defined(__alpha)
+#if defined(ultrix) || defined(__alpha) || defined(__NetBSD__)
#define PCAP_FDDIPAD 3
#endif
OpenPOWER on IntegriCloud