]> The Tcpdump Group git mirrors - libpcap/commitdiff
from Chris Waters chris.waters[AT]networkchemistry.com:
authorhannes <hannes>
Thu, 26 Dec 2002 08:53:07 +0000 (08:53 +0000)
committerhannes <hannes>
Thu, 26 Dec 2002 08:53:07 +0000 (08:53 +0000)
reserve DLT and LINKTYPE for the Tazmen Sniffer
Protocol (TZSP).

bpf/net/bpf.h
savefile.c

index 030cc00eafe9fcb875217caa72f6e713333a792c..a99311984ad6235e2b267c2d560652f0a9f8365b 100644 (file)
@@ -37,7 +37,7 @@
  *
  *      @(#)bpf.h       7.1 (Berkeley) 5/7/91
  *
- * @(#) $Header: /tcpdump/master/libpcap/bpf/net/Attic/bpf.h,v 1.64 2002-12-11 22:43:32 guy Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/bpf/net/Attic/bpf.h,v 1.65 2002-12-26 08:53:07 hannes Exp $ (LBL)
  */
 
 #ifndef BPF_MAJOR_VERSION
@@ -384,6 +384,16 @@ struct bpf_hdr {
  */
 #define DLT_IEEE802_11_RADIO   127     /* 802.11 plus WLAN header */
 
+/*
+ * Reserved for the TZSP encapsulation, as per request from
+ * Chris Waters <[email protected]>
+ * TZSP is a generic encapsulation for any other link type,
+ * which includes a means to include meta-information
+ * with the packet, e.g. signal strength and channel
+ * for 802.11 packets.
+ */
+#define DLT_TZSP                128     /* Tazmen Sniffer Protocol */
+
 /*
  * The instruction encodings.
  */
index 7e8fdf7a0f3afeb1dfe4791b05a1a6998fa40a2e..79c3043af8117f96e35ec9fe59476d4ea862bae2 100644 (file)
@@ -30,7 +30,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.72 2002-12-22 23:05:53 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.73 2002-12-26 08:53:07 hannes Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -167,6 +167,8 @@ static const char rcsid[] =
 #define LINKTYPE_IP_OVER_FC    122             /* RFC 2625 IP-over-Fibre Channel */
 #define LINKTYPE_SUNATM                123             /* Solaris+SunATM */
 
+#define LINKTYPE_TZSP          126             /* Tazmen Sniffer Protocol */
+
 #define LINKTYPE_IEEE802_11_RADIO 127          /* 802.11 plus WLAN header */
 
 /*
@@ -282,6 +284,9 @@ static struct linktype_map {
        /* Xilinx Aurora link layer */
        { DLT_AURORA,           LINKTYPE_AURORA },
 
+       /* Tazmen Sniffer Protocol */
+       { DLT_TZSP,             LINKTYPE_TZSP },
+
        /* 802.11 plus WLAN header */
        { DLT_IEEE802_11_RADIO, LINKTYPE_IEEE802_11_RADIO },