aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2019-06-19 07:10:59 +0200
committerAnders Broman <a.broman58@gmail.com>2019-06-19 15:07:04 +0000
commit62b5e400b42afa5cec07a3f43787b0cc4084e1da (patch)
treefe62022f27153cb173b2cdb82d8a429aed899ac2 /epan
parent46ebd2411d5f6b3e63491f92b8894b5391e37802 (diff)
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>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-pcep.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/epan/dissectors/packet-pcep.c b/epan/dissectors/packet-pcep.c
index 548b3986a0..f130099ae3 100644
--- a/epan/dissectors/packet-pcep.c
+++ b/epan/dissectors/packet-pcep.c
@@ -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,