summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorguy <guy>2003-12-03 21:34:21 +0000
committerguy <guy>2003-12-03 21:34:21 +0000
commit808a1fd8e1882b4cb46c8efb99cdbd903afa5f4d (patch)
treebc069d0c815568e9207134403aa9b1d6e6919b2d
parent4f9b1a623865d5e7dc21998dce6f1e9798c18f8f (diff)
downloadlibpcap-808a1fd8e1882b4cb46c8efb99cdbd903afa5f4d.tar.gz
Reserve two DLT_ values for IBM's use.
-rw-r--r--pcap-bpf.h8
-rw-r--r--savefile.c8
2 files changed, 14 insertions, 2 deletions
diff --git a/pcap-bpf.h b/pcap-bpf.h
index ae300831..153b3dcd 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.11 2003-11-18 21:06:50 guy Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/pcap-bpf.h,v 1.12 2003-12-03 21:34:21 guy Exp $ (LBL)
*/
/*
@@ -421,6 +421,12 @@ struct bpf_version {
#define DLT_LINUX_IRDA 144
/*
+ * Reserved for IBM SP switch and IBM Next Federation switch.
+ */
+#define DLT_IBM_SP 145
+#define DLT_IBM_SN 146
+
+/*
* The instruction encodings.
*/
/* instruction classes */
diff --git a/savefile.c b/savefile.c
index 036fc0d1..80e4154d 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.98 2003-11-21 10:19:37 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.99 2003-12-03 21:34:21 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -209,6 +209,8 @@ static const char rcsid[] _U_ =
#define LINKTYPE_RIO 124 /* RapidIO */
#define LINKTYPE_PCI_EXP 125 /* PCI Express */
#define LINKTYPE_AURORA 126 /* Xilinx Aurora link layer */
+#define LINKTYPE_IBM_SP 145 /* IBM SP switch */
+#define LINKTYPE_IBM_SN 146 /* IBM Next Federation switch */
static struct linktype_map {
int dlt;
@@ -340,6 +342,10 @@ static struct linktype_map {
/* IrDA IrLAP packets + Linux-cooked header */
{ DLT_LINUX_IRDA, LINKTYPE_LINUX_IRDA },
+ /* IBM SP and Next Federation switches */
+ { DLT_IBM_SP, LINKTYPE_IBM_SP },
+ { DLT_IBM_SN, LINKTYPE_IBM_SN },
+
/*
* Any platform that defines additional DLT_* codes should:
*