forked from osmocom/wireshark
LDP: Add Entropy Label Capability TLV
s. https://tools.ietf.org/html/rfc6790#section-5.1 Bug: 13584 Change-Id: I1271b154960d7c46f9d0776a431beab3290c2871 Reviewed-on: https://code.wireshark.org/review/21007 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
14ba81598d
commit
069c15ccb9
|
@ -358,6 +358,7 @@ static gboolean ldp_desegment = TRUE;
|
|||
#define TLV_ATM_LABEL 0x0201
|
||||
#define TLV_FRAME_LABEL 0x0202
|
||||
#define TLV_FT_PROTECTION 0x0203
|
||||
#define TLV_ENTROPY_LABEL 0x0206
|
||||
#define TLV_STATUS 0x0300
|
||||
#define TLV_EXTENDED_STATUS 0x0301
|
||||
#define TLV_RETURNED_PDU 0x0302
|
||||
|
@ -434,6 +435,7 @@ static const value_string tlv_type_names[] = {
|
|||
{ TLV_ATM_LABEL, "ATM Label TLV"},
|
||||
{ TLV_FRAME_LABEL, "Frame Label TLV"},
|
||||
{ TLV_FT_PROTECTION, "FT Protection TLV"},
|
||||
{ TLV_ENTROPY_LABEL, "Entropy Label Capability TLV"},
|
||||
{ TLV_STATUS, "Status TLV"},
|
||||
{ TLV_EXTENDED_STATUS, "Extended Status TLV"},
|
||||
{ TLV_RETURNED_PDU, "Returned PDU TLV"},
|
||||
|
@ -2425,6 +2427,13 @@ dissect_tlv(tvbuff_t *tvb, packet_info *pinfo, guint offset, proto_tree *tree, i
|
|||
offset + 4,length, ENC_BIG_ENDIAN);
|
||||
break;
|
||||
|
||||
case TLV_ENTROPY_LABEL:
|
||||
if( length != 0 ) /* Length must be 0 bytes */
|
||||
proto_tree_add_expert_format(tlv_tree, pinfo, &ei_ldp_tlv_fec_len, tvb, offset + 4, length,
|
||||
"Error processing Entropy Label Capability TLV: length is %d, should be 0",
|
||||
length);
|
||||
break;
|
||||
|
||||
case TLV_STATUS:
|
||||
dissect_tlv_status(tvb, pinfo, offset + 4, tlv_tree, length);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue