summaryrefslogtreecommitdiffstats
path: root/contrib/libpcap/bpf
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>1997-05-27 00:01:12 +0000
committerfenner <fenner@FreeBSD.org>1997-05-27 00:01:12 +0000
commit737558aa98d3b86de65ff8e1fd0fe39d5debcde7 (patch)
treede061620aa05599ec749d528046e58091ef80529 /contrib/libpcap/bpf
parent498933506f435a155849919ee10bbdbc9ad42caa (diff)
downloadFreeBSD-src-737558aa98d3b86de65ff8e1fd0fe39d5debcde7.zip
FreeBSD-src-737558aa98d3b86de65ff8e1fd0fe39d5debcde7.tar.gz
Virgin import of libpcap 0.3
Diffstat (limited to 'contrib/libpcap/bpf')
-rw-r--r--contrib/libpcap/bpf/net/bpf.h7
-rw-r--r--contrib/libpcap/bpf/net/bpf_filter.c8
2 files changed, 9 insertions, 6 deletions
diff --git a/contrib/libpcap/bpf/net/bpf.h b/contrib/libpcap/bpf/net/bpf.h
index 7d0205e..d2e0af1 100644
--- a/contrib/libpcap/bpf/net/bpf.h
+++ b/contrib/libpcap/bpf/net/bpf.h
@@ -37,7 +37,7 @@
*
* @(#)bpf.h 7.1 (Berkeley) 5/7/91
*
- * @(#) $Header: bpf.h,v 1.34 96/06/16 22:36:07 leres Exp $ (LBL)
+ * @(#) $Header: bpf.h,v 1.35 96/09/26 21:57:37 leres Exp $ (LBL)
*/
#ifndef BPF_MAJOR_VERSION
@@ -115,6 +115,8 @@ struct bpf_version {
#define BIOCGSTATS _IOR(B,111, struct bpf_stat)
#define BIOCIMMEDIATE _IOW(B,112, u_int)
#define BIOCVERSION _IOR(B,113, struct bpf_version)
+#define BIOCSTCPF _IOW(B,114, struct bpf_program)
+#define BIOCSUDPF _IOW(B,115, struct bpf_program)
#else
#define BIOCGBLEN _IOR('B',102, u_int)
#define BIOCSBLEN _IOWR('B',102, u_int)
@@ -129,6 +131,8 @@ struct bpf_version {
#define BIOCGSTATS _IOR('B',111, struct bpf_stat)
#define BIOCIMMEDIATE _IOW('B',112, u_int)
#define BIOCVERSION _IOR('B',113, struct bpf_version)
+#define BIOCSTCPF _IOW('B',114, struct bpf_program)
+#define BIOCSUDPF _IOW('B',115, struct bpf_program)
#endif
/*
@@ -165,6 +169,7 @@ struct bpf_hdr {
#define DLT_PPP 9 /* Point-to-point Protocol */
#define DLT_FDDI 10 /* FDDI */
#define DLT_ATM_RFC1483 11 /* LLC/SNAP encapsulated atm */
+#define DLT_RAW 12 /* raw IP */
/*
* The instruction encondings.
diff --git a/contrib/libpcap/bpf/net/bpf_filter.c b/contrib/libpcap/bpf/net/bpf_filter.c
index bacba7b..9afb10b 100644
--- a/contrib/libpcap/bpf/net/bpf_filter.c
+++ b/contrib/libpcap/bpf/net/bpf_filter.c
@@ -36,13 +36,11 @@
* SUCH DAMAGE.
*
* @(#)bpf.c 7.5 (Berkeley) 7/15/91
- *
- * static char rcsid[] =
- * "$Header: bpf_filter.c,v 1.29 96/06/23 13:44:02 leres Exp $";
*/
+
#if !(defined(lint) || defined(KERNEL))
-static char rcsid[] =
- "@(#) $Header: bpf_filter.c,v 1.29 96/06/23 13:44:02 leres Exp $ (LBL)";
+static const char rcsid[] =
+ "@(#) $Header: bpf_filter.c,v 1.31 96/12/11 20:18:39 leres Exp $ (LBL)";
#endif
#include <sys/param.h>
OpenPOWER on IntegriCloud