From: guy Date: Fri, 8 Mar 2002 11:28:03 +0000 (+0000) Subject: Add a LINKTYPE_ value for Fibre Channel, as per a request from Don Lee X-Git-Tag: libpcap-0.7.2~37 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/f46ebd655f283b6fc4379ca735e8bbaaf7131716 Add a LINKTYPE_ value for Fibre Channel, as per a request from Don Lee . Propagate from the main branch: revision 1.56 date: 2002/01/25 08:27:33; author: guy; state: Exp; lines: +5 -1 Link-layer type 121 reserved for Siemens HiPath HDLC, as per a request from Tomas Kukosa . so that the x.7 branch has all the reserved LINKTYPE_ values in it (to remind people who might be tempted to steal those values for their own purposes that those values are unavailable). --- diff --git a/savefile.c b/savefile.c index b9a36d68..06d5a2a1 100644 --- a/savefile.c +++ b/savefile.c @@ -30,7 +30,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.56 2002-01-25 08:27:33 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/savefile.c,v 1.55.2.1 2002-03-08 11:28:03 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -179,6 +179,7 @@ static const char rcsid[] = #define LINKTYPE_IPFILTER 116 /* IP Filter capture files */ #define LINKTYPE_PFLOG 117 /* OpenBSD DLT_PFLOG */ #define LINKTYPE_HHDLC 121 /* Siemens HiPath HDLC */ +#define LINKTYPE_FC 122 /* Fibre Channel */ static struct linktype_map { int dlt; @@ -257,6 +258,9 @@ static struct linktype_map { /* Siemens HiPath HDLC */ { DLT_HHDLC, LINKTYPE_HHDLC }, + /* Fibre Channel */ + { DLT_FC, LINKTYPE_FC }, + /* * Any platform that defines additional DLT_* codes should: *