aboutsummaryrefslogtreecommitdiffstats
path: root/savefile.c
diff options
context:
space:
mode:
authorguy <guy>2007-08-14 20:56:01 +0000
committerguy <guy>2007-08-14 20:56:01 +0000
commit4427ebae838ba0209e56bd91edff72ace4422eea (patch)
treed31b2e2c6f2c75aa51754c3a60a1c03525290ba1 /savefile.c
parent564ec53397bbcb66a45536ab6c01305c5c9b7167 (diff)
Add DLT value for IPMI IPMB packets, beginning with the I2C slave
address, followed by the netFn and LUN, etc.. Requested by Chanthy Toeung.
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 9860dad..fbb80a7 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.161 2007-08-13 16:51:41 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.162 2007-08-14 20:56:01 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -545,6 +545,13 @@ static const char rcsid[] _U_ =
*/
#define LINKTYPE_RAIF1 198
+/*
+ * IPMB packet for IPMI, beginning with the I2C slave address, followed
+ * by the netFn and LUN, etc.. Requested by Chanthy Toeung
+ * <chanthy.toeung@ca.kontron.com>.
+ */
+#define LINKTYPE_IPMB 199
+
static struct linktype_map {
int dlt;
@@ -802,6 +809,9 @@ static struct linktype_map {
/* Special header for u10 Networks boards */
{ DLT_RAIF1, LINKTYPE_RAIF1 },
+ /* IPMB */
+ { DLT_IPMB, LINKTYPE_IPMB },
+
{ -1, -1 }
};