aboutsummaryrefslogtreecommitdiffstats
path: root/bpf
diff options
context:
space:
mode:
authorguy <guy>2001-09-09 05:02:28 +0000
committerguy <guy>2001-09-09 05:02:28 +0000
commit7acd15ba8db8feee7b3e451cf19db704dd1eebb6 (patch)
tree0ed41bda8f3b48a89990e7715b316475d04ea4e5 /bpf
parentb57608cf35a5ce365bcb45fb37908c321e94011a (diff)
Reserve 116 for IP Filter capture files and 117 for OpenBSD DLT_PFLOG.
Diffstat (limited to 'bpf')
-rw-r--r--bpf/net/bpf.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/bpf/net/bpf.h b/bpf/net/bpf.h
index 5933d30..6ecd416 100644
--- a/bpf/net/bpf.h
+++ b/bpf/net/bpf.h
@@ -37,7 +37,7 @@
*
* @(#)bpf.h 7.1 (Berkeley) 5/7/91
*
- * @(#) $Header: /tcpdump/master/libpcap/bpf/net/Attic/bpf.h,v 1.48 2001-09-09 04:27:19 guy Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/bpf/net/Attic/bpf.h,v 1.49 2001-09-09 05:02:29 guy Exp $ (LBL)
*/
#ifndef BPF_MAJOR_VERSION
@@ -257,14 +257,15 @@ struct bpf_hdr {
* OpenBSD defines it as 12, but that collides with DLT_RAW, so we
* define it as 108 here. If OpenBSD picks up this file, it should
* define DLT_LOOP as 12 in its version, as per the comment above -
- * and should not use 108 for any purpose.
+ * and should not use 108 as a DLT_ value.
*/
#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
- * between platforms; don't use those values for new DLT_ new types.
+ * between platforms; don't use those values for new DLT_ types
+ * other than the corresponding DLT_ types.
*/
/*
@@ -283,6 +284,16 @@ struct bpf_hdr {
#define DLT_ECONET 115
/*
+ * 116 is reserved for DLT_IPFILTER.
+ * 117 is used in capture-file headers as a link-layer type corresponding
+ * to OpenBSD DLT_PFLOG; DLT_PFLOG is 17, but that's DLT_LANE8023 in
+ * SuSE 6.3, so we can't use 17 for it in capture-file headers.
+ *
+ * Don't use 116 for anything other than DLT_IPFILTER, and don't use
+ * 117 for anything other than DLT_PFLOG.
+ */
+
+/*
* The instruction encodings.
*/
/* instruction classes */