summaryrefslogtreecommitdiffstats
path: root/lib/libpcap/pcap-int.h
diff options
context:
space:
mode:
authorjakob <jakob@openbsd.org>2000-04-26 21:25:52 +0000
committerjakob <jakob@openbsd.org>2000-04-26 21:25:52 +0000
commita9b0695f23eb897f3321236f6dd3b42a49f08bdd (patch)
tree54bb8074819bbe60e0566de5543a361782caa181 /lib/libpcap/pcap-int.h
parentpool manipulation routines; second take (diff)
downloadwireguard-openbsd-a9b0695f23eb897f3321236f6dd3b42a49f08bdd.tar.xz
wireguard-openbsd-a9b0695f23eb897f3321236f6dd3b42a49f08bdd.zip
sync with libpcap v0.5
add support for INET6 (kame)
Diffstat (limited to 'lib/libpcap/pcap-int.h')
-rw-r--r--lib/libpcap/pcap-int.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/lib/libpcap/pcap-int.h b/lib/libpcap/pcap-int.h
index 47e20c93af5..d86910de128 100644
--- a/lib/libpcap/pcap-int.h
+++ b/lib/libpcap/pcap-int.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcap-int.h,v 1.7 1999/07/20 04:49:55 deraadt Exp $ */
+/* $OpenBSD: pcap-int.h,v 1.8 2000/04/26 21:25:53 jakob Exp $ */
/*
* Copyright (c) 1994, 1995, 1996
@@ -32,7 +32,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#) $Header: /home/cvs/src/lib/libpcap/pcap-int.h,v 1.7 1999/07/20 04:49:55 deraadt Exp $ (LBL)
+ * @(#) $Header: /home/cvs/src/lib/libpcap/pcap-int.h,v 1.8 2000/04/26 21:25:53 jakob Exp $ (LBL)
*/
#ifndef pcap_int_h
@@ -99,6 +99,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