summaryrefslogtreecommitdiffstats
path: root/lib/libpcap/pcap-int.h
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>1996-07-12 13:19:06 +0000
committermickey <mickey@openbsd.org>1996-07-12 13:19:06 +0000
commit9b113833b7123ecd504a0b56703dd9d7af6223a6 (patch)
tree0996523fdc8f6525ebfb28a5299bbe097a003941 /lib/libpcap/pcap-int.h
parentcannot check for stack underflow (diff)
downloadwireguard-openbsd-9b113833b7123ecd504a0b56703dd9d7af6223a6.tar.xz
wireguard-openbsd-9b113833b7123ecd504a0b56703dd9d7af6223a6.zip
bring it to the latest 0.2 LBL release.
Diffstat (limited to 'lib/libpcap/pcap-int.h')
-rw-r--r--lib/libpcap/pcap-int.h17
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