diff options
author | Uli Heilmeier <uh@heilmeier.eu> | 2017-04-10 20:18:27 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-04-10 21:12:01 +0000 |
commit | 069c15ccb94e2d2657f21a9001715732fdfd927c (patch) | |
tree | f898c561e973110ddd30864be54cd5dfbe9e82de /epan/dissectors/packet-ldp.c | |
parent | 14ba81598da88390d26d3082da735743d6d41074 (diff) |
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>
Diffstat (limited to 'epan/dissectors/packet-ldp.c')
-rw-r--r-- | epan/dissectors/packet-ldp.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ldp.c b/epan/dissectors/packet-ldp.c index d5df770dad..5c0c81ec04 100644 --- a/epan/dissectors/packet-ldp.c +++ b/epan/dissectors/packet-ldp.c @@ -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; |