]> The Tcpdump Group git mirrors - libpcap/commitdiff
Add DLT value for IPMI IPMB packets, beginning with the I2C slave
authorguy <guy>
Tue, 14 Aug 2007 20:56:01 +0000 (20:56 +0000)
committerguy <guy>
Tue, 14 Aug 2007 20:56:01 +0000 (20:56 +0000)
address, followed by the netFn and LUN, etc..  Requested by Chanthy
Toeung.

pcap/bpf.h
savefile.c

index 401c10e7a39fefb0cf0f0551968dc4dfece6cf05..3e1238c2b18cd5b3883376596465dc1545e8984c 100644 (file)
@@ -37,7 +37,7 @@
  *
  *      @(#)bpf.h       7.1 (Berkeley) 5/7/91
  *
- * @(#) $Header: /tcpdump/master/libpcap/pcap/bpf.h,v 1.14 2007-08-13 16:51:41 guy Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/pcap/bpf.h,v 1.15 2007-08-14 20:56:01 guy Exp $ (LBL)
  */
 
 /*
@@ -721,6 +721,13 @@ struct bpf_version {
  */
 #define DLT_RAIF1              198
 
+/*
+ * IPMB packet for IPMI, beginning with the I2C slave address, followed
+ * by the netFn and LUN, etc..  Requested by Chanthy Toeung
+ */
+#define DLT_IPMB               199
+
 
 /*
  * The instruction encodings.
index 9860dad442650de804ae57264c23fc25797e58c1..fbb80a755aa6dded7d38dfd5a0d14c89de90ae8a 100644 (file)
@@ -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
+ */
+#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 }
 };