aboutsummaryrefslogtreecommitdiffstats
path: root/bpf
diff options
context:
space:
mode:
authorguy <guy>2000-11-15 05:36:48 +0000
committerguy <guy>2000-11-15 05:36:48 +0000
commitef0a3b3d3824a198ef6e62c2d478fe0568157311 (patch)
tree22525a782d730e1704f2ed097043295a654b7dbe /bpf
parente9c32982c8930b39889fa6cd73e68545133fdb5a (diff)
Add a DLT_IEEE802_11 for use by any platform that provides raw 802.11
link-layer headers on capture. (Nothing uses it yet, but hopefully this will make it less likely that they'll use different DLT_ names or values.)
Diffstat (limited to 'bpf')
-rw-r--r--bpf/net/bpf.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/bpf/net/bpf.h b/bpf/net/bpf.h
index ba4c340..3066edf 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.40 2000-10-12 03:54:02 guy Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/bpf/net/Attic/bpf.h,v 1.41 2000-11-15 05:36:49 guy Exp $ (LBL)
*/
#ifndef BPF_MAJOR_VERSION
@@ -234,6 +234,18 @@ struct bpf_hdr {
#define DLT_CHDLC DLT_C_HDLC
/*
+ * Reserved for future use.
+ * Do not pick other numerical value for these unless you have also
+ * picked up the tcpdump.org top-of-CVS-tree version of "savefile.c",
+ * which will arrange that capture files for these DLT_ types have
+ * the same "network" value on all platforms, regardless of what
+ * value is chosen for their DLT_ type (thus allowing captures made
+ * on one platform to be read on other platforms, even if the two
+ * platforms don't use the same numerical values for all DLT_ types).
+ */
+#define DLT_IEEE802_11 105 /* IEEE 802.11 wireless */
+
+/*
* The instruction encondings.
*/
/* instruction classes */