diff options
author | Matthieu Texier <matthieu@texier.tv> | 2014-04-04 13:39:18 +0200 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-04-14 16:44:50 +0000 |
commit | e9e4277f2a8e22d68d5280b82372313fbe5ad568 (patch) | |
tree | beef522a3cf7b7faa67ce0d70a3119ba8482854f /epan/dissectors/packet-ldp.c | |
parent | 9838ab902e58aee4de8d17bb5a7f4dfbb3b9cdca (diff) |
Add support of RFC 6514 PMSI bgp attribute and tunnel ID decoding
Change-Id: Ia170002fb5af5f6548595688956cc01ec4a72298
Reviewed-on: https://code.wireshark.org/review/960
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-ldp.c')
-rw-r--r-- | epan/dissectors/packet-ldp.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/epan/dissectors/packet-ldp.c b/epan/dissectors/packet-ldp.c index 303b4cce24..1c58bcc98a 100644 --- a/epan/dissectors/packet-ldp.c +++ b/epan/dissectors/packet-ldp.c @@ -573,15 +573,19 @@ static const value_string tlv_unknown_vals[] = { #define VC_FEC 0x80 /* draft-martini-l2circuit-trans-mpls */ #define GEN_FEC 0x81 #define P2MP_FEC 0x06 - -static const value_string fec_types[] = { - {WILDCARD_FEC, "Wildcard FEC"}, - {PREFIX_FEC, "Prefix FEC"}, - {HOST_FEC, "Host Address FEC"}, - {CRLSP_FEC, "CR LSP FEC"}, - {VC_FEC, "Virtual Circuit FEC"}, - {GEN_FEC, "Generalized PWid FEC"}, - {P2MP_FEC, "P2MP FEC"}, +#define MP2MP_FEC_UP 0x07 +#define MP2MP_FEC_DOWN 0x08 + +const value_string fec_types_vals[] = { + {WILDCARD_FEC, "Wildcard FEC"}, + {PREFIX_FEC, "Prefix FEC"}, + {HOST_FEC, "Host Address FEC"}, + {CRLSP_FEC, "CR LSP FEC"}, + {VC_FEC, "Virtual Circuit FEC"}, + {GEN_FEC, "Generalized PWid FEC"}, + {P2MP_FEC, "P2MP FEC"}, + {MP2MP_FEC_UP, "MP2MP FEC upstream"}, + {MP2MP_FEC_DOWN, "MP2MP FEC Downstream"}, {0, NULL} }; @@ -3398,7 +3402,7 @@ proto_register_ldp(void) { &hf_ldp_tlv_fec_wc, { "FEC Element Type", "ldp.msg.tlv.fec.type", FT_UINT8, BASE_DEC, - VALS(fec_types), 0x0, "Forwarding Equivalence Class Element Types", HFILL }}, + VALS(fec_types_vals), 0x0, "Forwarding Equivalence Class Element Types", HFILL }}, { &hf_ldp_tlv_fec_af, { "FEC Element Address Type", "ldp.msg.tlv.fec.af", FT_UINT16, BASE_DEC, |