From: guy Date: Tue, 14 Aug 2007 20:56:01 +0000 (+0000) Subject: Add DLT value for IPMI IPMB packets, beginning with the I2C slave X-Git-Tag: libpcap-1.1.0~455 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/4427ebae838ba0209e56bd91edff72ace4422eea Add DLT value for IPMI IPMB packets, beginning with the I2C slave address, followed by the netFn and LUN, etc.. Requested by Chanthy Toeung. --- diff --git a/pcap/bpf.h b/pcap/bpf.h index 401c10e7..3e1238c2 100644 --- a/pcap/bpf.h +++ b/pcap/bpf.h @@ -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. diff --git a/savefile.c b/savefile.c index 9860dad4..fbb80a75 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 + * . + */ +#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 } };