PCEP: Add Segment Routing Policy Candidate Paths TLV (type 40)
from draft-barth-pce-segment-routing-policy-cp Bug: 15834 Change-Id: I4e9383da32bafcab5b9f8180cd05a85a6e2ccd19 Reviewed-on: https://code.wireshark.org/review/33653 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
46ebd2411d
commit
62b5e400b4
|
@ -662,6 +662,10 @@ static int hf_pcep_op_conf_assoc_range_assoc_type = -1;
|
|||
static int hf_pcep_op_conf_assoc_range_start_assoc = -1;
|
||||
static int hf_pcep_op_conf_assoc_range_range = -1;
|
||||
|
||||
static int hf_pcep_srcpag_info_color = -1;
|
||||
static int hf_pcep_srcpag_info_destination_endpoint = -1;
|
||||
static int hf_pcep_srcpag_info_preference = -1;
|
||||
|
||||
static int hf_pcep_enterprise_number = -1;
|
||||
static int hf_pcep_enterprise_specific_info = -1;
|
||||
static int hf_pcep_tlv_enterprise_number = -1;
|
||||
|
@ -1066,6 +1070,7 @@ static const value_string pcep_tlvs_vals[] = {
|
|||
{30, "GLOBAL-ASSOCIATION-SOURCE" },
|
||||
{31, "EXTENDED-ASSOCIATION-ID" },
|
||||
{34, "PATH-SETUP-TYPE-CAPABILITY" },
|
||||
{40, "SRCPAG-INFO" }, /* Not yet register */
|
||||
{0, NULL }
|
||||
};
|
||||
|
||||
|
@ -1525,6 +1530,12 @@ dissect_pcep_tlvs(proto_tree *pcep_obj, tvbuff_t *tvb, int offset, gint length,
|
|||
}
|
||||
break;
|
||||
|
||||
case 40: /* SRCPAG-INFO TLV */
|
||||
proto_tree_add_item(tlv, hf_pcep_srcpag_info_color, tvb, offset + 4 + j, 4, ENC_BIG_ENDIAN);
|
||||
proto_tree_add_item(tlv, hf_pcep_srcpag_info_destination_endpoint, tvb, offset + 4 + j + 4, 4, ENC_NA);
|
||||
proto_tree_add_item(tlv, hf_pcep_srcpag_info_preference, tvb, offset + 4 + j + 8, 4, ENC_NA);
|
||||
break;
|
||||
|
||||
default:
|
||||
proto_tree_add_item(tlv, hf_pcep_tlv_data, tvb, offset+4+j, tlv_length, ENC_NA);
|
||||
}
|
||||
|
@ -5662,6 +5673,21 @@ proto_register_pcep(void)
|
|||
FT_UINT16, BASE_DEC, NULL, 0x0,
|
||||
NULL, HFILL }
|
||||
},
|
||||
{ &hf_pcep_srcpag_info_color,
|
||||
{ "Color", "pcep.srcpag_info.color",
|
||||
FT_UINT32, BASE_DEC, NULL, 0x0,
|
||||
NULL, HFILL }
|
||||
},
|
||||
{ &hf_pcep_srcpag_info_destination_endpoint,
|
||||
{ "Destination End-point", "pcep.srcpag_info.destination_endpoint",
|
||||
FT_IPv4, BASE_NONE, NULL, 0x0,
|
||||
NULL, HFILL }
|
||||
},
|
||||
{ &hf_pcep_srcpag_info_preference,
|
||||
{ "Preference", "pcep.srcpag_info.preference",
|
||||
FT_UINT32, BASE_DEC, NULL, 0x0,
|
||||
NULL, HFILL }
|
||||
},
|
||||
{ &hf_pcep_enterprise_number,
|
||||
{ "Enterprise Number", "pcep.vendor-information.enterprise-number",
|
||||
FT_UINT32, BASE_ENTERPRISES, STRINGS_ENTERPRISES, 0x0,
|
||||
|
|
Loading…
Reference in New Issue