diff options
author | jakob <jakob@openbsd.org> | 2000-04-26 21:25:52 +0000 |
---|---|---|
committer | jakob <jakob@openbsd.org> | 2000-04-26 21:25:52 +0000 |
commit | a9b0695f23eb897f3321236f6dd3b42a49f08bdd (patch) | |
tree | 54bb8074819bbe60e0566de5543a361782caa181 /lib/libpcap/pcap-int.h | |
parent | pool manipulation routines; second take (diff) | |
download | wireguard-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.h | 25 |
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 |