aboutsummaryrefslogtreecommitdiffstats
path: root/savefile.c
diff options
context:
space:
mode:
authorguy <guy>2007-08-13 16:51:41 +0000
committerguy <guy>2007-08-13 16:51:41 +0000
commit564ec53397bbcb66a45536ab6c01305c5c9b7167 (patch)
tree6ad7b0367405d3865032793301b9ba80065bdcdd /savefile.c
parentc3ced24e7e5718e91c8c1dadc052cf663de34a9f (diff)
New DLT value for packets captured from u10 Networks boards; requested
by Phil Mulholland of u10.
Diffstat (limited to 'savefile.c')
-rw-r--r--savefile.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/savefile.c b/savefile.c
index 0cec20a..9860dad 100644
--- a/savefile.c
+++ b/savefile.c
@@ -30,7 +30,7 @@
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.160 2007-08-07 23:51:53 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.161 2007-08-13 16:51:41 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -538,6 +538,13 @@ static const char rcsid[] _U_ =
*/
#define LINKTYPE_ERF 197
+/*
+ * Special header prepended to Ethernet packets when capturing from a
+ * u10 Networks board. Requested by Phil Mulholland
+ * <phil@u10networks.com>.
+ */
+#define LINKTYPE_RAIF1 198
+
static struct linktype_map {
int dlt;
@@ -792,6 +799,9 @@ static struct linktype_map {
/* Various link-layer types for Endace */
{ DLT_ERF, LINKTYPE_ERF },
+ /* Special header for u10 Networks boards */
+ { DLT_RAIF1, LINKTYPE_RAIF1 },
+
{ -1, -1 }
};