From 11934bbcf07c47e89cd22255be60c706ac4b800d Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 23 Jul 2009 12:24:14 -0700 Subject: Add another Fibre Channel link-layer type value; this one is for frames that include an encoding of the frame delimiters. --- savefile.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'savefile.c') diff --git a/savefile.c b/savefile.c index 963e48f..f71ef1d 100644 --- a/savefile.c +++ b/savefile.c @@ -722,6 +722,20 @@ static const char rcsid[] _U_ = */ #define LINKTYPE_FC_2 224 +/* + * Fibre Channel FC-2 frames, beginning with an encoding of the + * SOF, and ending with an encoding of the EOF. + * + * The encodings represent the frame delimiters as 4-byte sequences + * representing the corresponding ordered sets, with K28.5 + * represented as 0xBC, and the D symbols as the corresponding + * byte values; for example, SOFi2, which is K28.5 - D21.5 - D1.2 - D21.2, + * is represented as 0xBC 0xB5 0x55 0x55. + * + * Requested by Kahou Lei . + */ +#define LINKTYPE_FC_2_WITH_FRAME_DELIMS 225 + static struct linktype_map { int dlt; @@ -1052,9 +1066,12 @@ static struct linktype_map { /* Wireless HART */ { DLT_WIHART, LINKTYPE_WIHART }, - /* Fibre Channel FC-2 frames */ + /* Fibre Channel FC-2 frames without SOF or EOF */ { DLT_FC_2, LINKTYPE_FC_2 }, + /* Fibre Channel FC-2 frames with SOF and EOF */ + { DLT_FC_2_WITH_FRAME_DELIMS, LINKTYPE_FC_2_WITH_FRAME_DELIMS }, + { -1, -1 } }; -- cgit v1.2.3