]> The Tcpdump Group git mirrors - libpcap/commitdiff
DLT_ERF, for encapsulating Endace ERF records and packet data for
authorguy <guy>
Tue, 7 Aug 2007 23:51:53 +0000 (23:51 +0000)
committerguy <guy>
Tue, 7 Aug 2007 23:51:53 +0000 (23:51 +0000)
various link-layer types.

pcap/bpf.h
savefile.c

index 78961ac7e3b4815603db99dbe9a8e4af059e8f6c..741c5b81c917f12504b009f1841be2ec0ad994a4 100644 (file)
@@ -37,7 +37,7 @@
  *
  *      @(#)bpf.h       7.1 (Berkeley) 5/7/91
  *
- * @(#) $Header: /tcpdump/master/libpcap/pcap/bpf.h,v 1.12 2007-07-19 06:19:54 guy Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/pcap/bpf.h,v 1.13 2007-08-07 23:51:53 guy Exp $ (LBL)
  */
 
 /*
@@ -707,6 +707,13 @@ struct bpf_version {
  */
 #define DLT_SITA               196
 
+/*
+ * Various link-layer types, with a pseudo-header, for Endace DAG cards;
+ * encapsulates Endace ERF records.  Requested by Stephen Donnelly
+ */
+#define DLT_ERF                        197
+
 
 /*
  * The instruction encodings.
index 1b40fd8d7ccc528d7c95a69058588b07d1531cbc..0cec20a71d61ca4eb24bf943c5836bc030f7dd25 100644 (file)
@@ -30,7 +30,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.159 2007-07-19 06:19:54 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.160 2007-08-07 23:51:53 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -531,6 +531,13 @@ static const char rcsid[] _U_ =
  */
 #define LINKTYPE_SITA          196
 
+/*
+ * Various link-layer types, with a pseudo-header, for Endace DAG cards;
+ * encapsulates Endace ERF records.  Requested by Stephen Donnelly
+ */
+#define LINKTYPE_ERF           197
+
 
 static struct linktype_map {
        int     dlt;
@@ -782,6 +789,9 @@ static struct linktype_map {
        /* Various link-layer types for SITA */
        { DLT_SITA,             LINKTYPE_SITA },
 
+       /* Various link-layer types for Endace */
+       { DLT_ERF,              LINKTYPE_ERF },
+
        { -1,                   -1 }
 };