summaryrefslogtreecommitdiffstats
path: root/contrib/libpcap/bpf/net/bpf.h
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>2000-01-30 00:32:56 +0000
committerfenner <fenner@FreeBSD.org>2000-01-30 00:32:56 +0000
commitaae9bd2bccda7ddbeb438e8238ced9c4cd1e9d1d (patch)
treed7ccf2b8332af627d9692b32089580fd3967581f /contrib/libpcap/bpf/net/bpf.h
parentca0d84cb8bfc8789fd48ada56322a575c4a1aa68 (diff)
downloadFreeBSD-src-aae9bd2bccda7ddbeb438e8238ced9c4cd1e9d1d.zip
FreeBSD-src-aae9bd2bccda7ddbeb438e8238ced9c4cd1e9d1d.tar.gz
Virgin import of tcpdump.org libpcap v0.5
Diffstat (limited to 'contrib/libpcap/bpf/net/bpf.h')
-rw-r--r--contrib/libpcap/bpf/net/bpf.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/contrib/libpcap/bpf/net/bpf.h b/contrib/libpcap/bpf/net/bpf.h
index 704ef05..8a997aa 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.36 97/06/12 14:29:53 leres Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/bpf/net/bpf.h,v 1.37 1999/10/19 15:18:31 itojun Exp $ (LBL)
*/
#ifndef BPF_MAJOR_VERSION
@@ -52,7 +52,11 @@ typedef u_int bpf_u_int32;
* Alignment macros. BPF_WORDALIGN rounds up to the next
* even multiple of BPF_ALIGNMENT.
*/
+#ifndef __NetBSD__
#define BPF_ALIGNMENT sizeof(bpf_int32)
+#else
+#define BPF_ALIGNMENT sizeof(long)
+#endif
#define BPF_WORDALIGN(x) (((x)+(BPF_ALIGNMENT-1))&~(BPF_ALIGNMENT-1))
#define BPF_MAXINSNS 512
@@ -168,10 +172,21 @@ struct bpf_hdr {
#define DLT_SLIP 8 /* Serial Line IP */
#define DLT_PPP 9 /* Point-to-point Protocol */
#define DLT_FDDI 10 /* FDDI */
+#ifdef __FreeBSD__
+#define DLT_ATM_RFC1483 11 /* LLC/SNAP encapsulated atm */
+#endif
+#ifdef __OpenBSD__
#define DLT_ATM_RFC1483 11 /* LLC/SNAP encapsulated atm */
-#define DLT_RAW 12 /* raw IP */
-#define DLT_SLIP_BSDOS 13 /* BSD/OS Serial Line IP */
-#define DLT_PPP_BSDOS 14 /* BSD/OS Point-to-point Protocol */
+#define DLT_LOOP 12 /* loopback */
+#endif
+/* offset to avoid collision with BSD/OS values */
+#ifndef DLT_ATM_RFC1483
+#define DLT_ATM_RFC1483 100 /* LLC/SNAP encapsulated atm */
+#endif
+#define DLT_RAW 101 /* raw IP */
+#define DLT_SLIP_BSDOS 102 /* BSD/OS Serial Line IP */
+#define DLT_PPP_BSDOS 103 /* BSD/OS Point-to-point Protocol */
+#define DLT_CHDLC 104 /* Cisco HDLC */
/*
* The instruction encondings.
OpenPOWER on IntegriCloud