aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-bpf.h
diff options
context:
space:
mode:
authorguy <guy>2003-03-08 08:42:13 +0000
committerguy <guy>2003-03-08 08:42:13 +0000
commit786403c0a799230434ba3933cf64a10053e58cc9 (patch)
tree734c48e2736ab932c1c452a19d44f58b183bea4c /pcap-bpf.h
parent78da480204e75f423a7e70891d236038c040397f (diff)
Add support for OpenBSD DLT_ENC - and map it to a value of 109, as its
value in OpenBSD, 13, is Yet Another DLT_ Value That Other OSes Use For Their Own Purposes.
Diffstat (limited to 'pcap-bpf.h')
-rw-r--r--pcap-bpf.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/pcap-bpf.h b/pcap-bpf.h
index dd53cea..8795962 100644
--- a/pcap-bpf.h
+++ b/pcap-bpf.h
@@ -37,7 +37,7 @@
*
* @(#)bpf.h 7.1 (Berkeley) 5/7/91
*
- * @(#) $Header: /tcpdump/master/libpcap/pcap-bpf.h,v 1.2 2003-02-11 17:03:22 hannes Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/pcap-bpf.h,v 1.3 2003-03-08 08:42:14 guy Exp $ (LBL)
*/
/*
@@ -225,8 +225,15 @@ struct bpf_version {
#define DLT_LOOP 108
/*
- * Values between 109 and 112 are used in capture file headers as
- * link-layer types corresponding to DLT_ types that might differ
+ * Encapsulated packets for IPsec; DLT_ENC is 13 in OpenBSD, but that's
+ * DLT_SLIP_BSDOS in NetBSD, so we can't use 13 for it in capture-file
+ * headers.
+ */
+#define DLT_ENC 109
+
+/*
+ * Values between 110 and 112 are reserved for use in capture file headers
+ * as link-layer types corresponding to DLT_ types that might differ
* between platforms; don't use those values for new DLT_ types
* other than the corresponding DLT_ types.
*/