diff options
author | guy <guy> | 2003-12-03 21:34:21 +0000 |
---|---|---|
committer | guy <guy> | 2003-12-03 21:34:21 +0000 |
commit | 808a1fd8e1882b4cb46c8efb99cdbd903afa5f4d (patch) | |
tree | bc069d0c815568e9207134403aa9b1d6e6919b2d | |
parent | 4f9b1a623865d5e7dc21998dce6f1e9798c18f8f (diff) | |
download | libpcap-808a1fd8e1882b4cb46c8efb99cdbd903afa5f4d.tar.gz |
Reserve two DLT_ values for IBM's use.
-rw-r--r-- | pcap-bpf.h | 8 | ||||
-rw-r--r-- | savefile.c | 8 |
2 files changed, 14 insertions, 2 deletions
@@ -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 */ @@ -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: * |