Add another Fibre Channel link-layer type value; this one is for frames
that include an encoding of the frame delimiters.
This commit is contained in:
parent
a5b84cdc4f
commit
11934bbcf0
14
pcap/bpf.h
14
pcap/bpf.h
|
@ -882,6 +882,20 @@ struct bpf_version {
|
||||||
*/
|
*/
|
||||||
#define DLT_FC_2 224
|
#define DLT_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 DLT_FC_2_WITH_FRAME_DELIMS 225
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* DLT and savefile link type values are split into a class and
|
* DLT and savefile link type values are split into a class and
|
||||||
|
|
19
savefile.c
19
savefile.c
|
@ -722,6 +722,20 @@ static const char rcsid[] _U_ =
|
||||||
*/
|
*/
|
||||||
#define LINKTYPE_FC_2 224
|
#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 {
|
static struct linktype_map {
|
||||||
int dlt;
|
int dlt;
|
||||||
|
@ -1052,9 +1066,12 @@ static struct linktype_map {
|
||||||
/* Wireless HART */
|
/* Wireless HART */
|
||||||
{ DLT_WIHART, LINKTYPE_WIHART },
|
{ DLT_WIHART, LINKTYPE_WIHART },
|
||||||
|
|
||||||
/* Fibre Channel FC-2 frames */
|
/* Fibre Channel FC-2 frames without SOF or EOF */
|
||||||
{ DLT_FC_2, LINKTYPE_FC_2 },
|
{ 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 }
|
{ -1, -1 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Reference in New Issue