From 32e1c4bab0fef34a87dc5839801c19f6d4fa373e Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 3 Jul 2009 17:09:22 -0700 Subject: [PATCH] Add a link-layer type value for Fibre Channel FC-2 frames, as requested by Kahou Leu. Clean up a comment. --- pcap/bpf.h | 8 +++++++- savefile.c | 11 ++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/pcap/bpf.h b/pcap/bpf.h index 1c75ae9..641b967 100644 --- a/pcap/bpf.h +++ b/pcap/bpf.h @@ -872,10 +872,16 @@ struct bpf_version { * From the HART Communication Foundation * IES/PAS 62591 * - * From Sam Roberts + * Requested by Sam Roberts . */ #define DLT_WIHART 223 +/* + * Fibre Channel FC-2 frames, beginning with a Frame_Header. + * Requested by Kahou Lei . + */ +#define DLT_FC_2 224 + /* * DLT and savefile link type values are split into a class and diff --git a/savefile.c b/savefile.c index 9efbefb..645e877 100644 --- a/savefile.c +++ b/savefile.c @@ -698,10 +698,16 @@ static const char rcsid[] _U_ = * From the HART Communication Foundation * IES/PAS 62591 * - * From Sam Roberts + * Requested by Sam Roberts . */ #define LINKTYPE_WIHART 223 +/* + * Fibre Channel FC-2 frames, beginning with a Frame_Header. + * Requested by Kahou Lei . + */ +#define LINKTYPE_FC_2 224 + static struct linktype_map { int dlt; @@ -1032,6 +1038,9 @@ static struct linktype_map { /* Wireless HART */ { DLT_WIHART, LINKTYPE_WIHART }, + /* Fibre Channel FC-2 frames */ + { DLT_FC_2, LINKTYPE_FC_2 }, + { -1, -1 } };