]> The Tcpdump Group git mirrors - libpcap/commitdiff
Add a LINKTYPE_ value for Fibre Channel, as per a request from Don Lee
authorguy <guy>
Fri, 8 Mar 2002 11:28:03 +0000 (11:28 +0000)
committerguy <guy>
Fri, 8 Mar 2002 11:28:03 +0000 (11:28 +0000)
<[email protected]>.

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 <[email protected]>.

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).

savefile.c

index b9a36d687fb9ac6115d9fa8593999fea2759adb7..06d5a2a1cff46cf40746707d155ab3c8c053931e 100644 (file)
@@ -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:
         *