aboutsummaryrefslogtreecommitdiffstats
path: root/savefile.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@steve.local>2009-07-23 12:24:14 -0700
committerGuy Harris <gharris@steve.local>2009-07-23 12:24:14 -0700
commit11934bbcf07c47e89cd22255be60c706ac4b800d (patch)
tree31f986d1b06f4978777606761866cf1e5dfc4e13 /savefile.c
parenta5b84cdc4fbb94f0ca02c53299b08c58cec700e0 (diff)
Add another Fibre Channel link-layer type value; this one is for frames
that include an encoding of the frame delimiters.
Diffstat (limited to 'savefile.c')
-rw-r--r--savefile.c19
1 files changed, 18 insertions, 1 deletions
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 <kahou82@gmail.com>.
+ */
+#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 }
};