diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-07-12 13:19:14 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-07-12 13:19:14 +0000 |
commit | 315030ef409756aa4e3157c7812a81792c64aed3 (patch) | |
tree | 3653ad97954580a6d932f9a7c2da2b25da87dbae /lib/libpcap/pcap-int.h | |
parent | c7a13b78b636f513ae61e3cb593d0e5a543a3977 (diff) |
bring it to the latest 0.2 LBL release.
Diffstat (limited to 'lib/libpcap/pcap-int.h')
-rw-r--r-- | lib/libpcap/pcap-int.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/libpcap/pcap-int.h b/lib/libpcap/pcap-int.h index a6eb72b6d49..697c09f97d5 100644 --- a/lib/libpcap/pcap-int.h +++ b/lib/libpcap/pcap-int.h @@ -1,8 +1,7 @@ -/* $OpenBSD */ -/* $NetBSD: pcap-int.h,v 1.2 1995/03/06 11:38:47 mycroft Exp $ */ +/* $OpenBSD: pcap-int.h,v 1.4 1996/07/12 13:19:11 mickey Exp $ */ /* - * Copyright (c) 1994 + * Copyright (c) 1994, 1995 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -33,7 +32,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#) Header: pcap-int.h,v 1.7 94/06/14 20:03:33 leres Exp (LBL) + * @(#) Header: pcap-int.h,v 1.14 95/10/21 22:04:49 leres Exp (LBL) */ #ifndef pcap_int_h @@ -54,14 +53,13 @@ struct pcap_sf { struct pcap_md { struct pcap_stat stat; -#ifdef PCAP_PF + /*XXX*/ int use_bpf; u_long TotPkts; /* can't oflow for 79 hrs on ether */ u_long TotAccepted; /* count accepted by filter */ u_long TotDrops; /* count of dropped packets */ long TotMissed; /* missed by i/f during this run */ long OrigMissed; /* missed by i/f before this run */ -#endif }; struct pcap { @@ -95,7 +93,14 @@ struct pcap { char errbuf[PCAP_ERRBUF_SIZE]; }; +int yylex(void); + /* XXX should these be in pcap.h? */ 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) +#define PCAP_FDDIPAD 3 +#endif #endif |