Commit 384f40f332 for frr

commit 384f40f33255594e368829a4c5750e2624f752ff
Author: Philippe Guibert <philippe.guibert@6wind.com>
Date:   Mon Nov 9 10:24:13 2026 +0100

    pceplib: add define for pcecc path setup type

    The path setup type capability test uses the PCECC path setup type
    with an hardset value.

    The PCECC path setup type value is 2, as defined in rfc9050. pceplib
    does not support PCECC, but the value is used in the test to check the
    order of the encoded PSTs.

    Add the PCECC_PST define, and use it in the test.

    Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>

diff --git a/pceplib/pcep_msg_tlvs.h b/pceplib/pcep_msg_tlvs.h
index 75d06c2ae2..198bc95802 100644
--- a/pceplib/pcep_msg_tlvs.h
+++ b/pceplib/pcep_msg_tlvs.h
@@ -185,8 +185,9 @@ struct pcep_object_tlv_lsp_error_code {
 };

 /* Path Setup Type TLV, Used in RP and SRP Object. RFCs: 8408,
- * rfc8664 */
+ * rfc8664, rfc9050 */
 #define SR_TE_PST 1
+#define PCECC_PST 2

 struct pcep_object_tlv_path_setup_type {
 	struct pcep_object_tlv_header header;
diff --git a/pceplib/test/pcep_msg_tlvs_test.c b/pceplib/test/pcep_msg_tlvs_test.c
index 020fb55e0e..82795d1a78 100644
--- a/pceplib/test/pcep_msg_tlvs_test.c
+++ b/pceplib/test/pcep_msg_tlvs_test.c
@@ -199,14 +199,14 @@ void test_pcep_tlv_create_path_setup_type_capability(void)
 		pcep_obj_free_tlv(&tlv->header);

 	/* Test only populating the pst list.
-	 * PCECC (2, rfc9050) and SRv6 (3, rfc9603) are not supported by
-	 * pceplib, they are only used to check the order of the PSTs.
+	 * PCECC and SRv6 (3, rfc9603) are not supported by pceplib, they
+	 * are only used to check the order of the PSTs.
 	 */
 	uint8_t *pst1 = pceplib_malloc(PCEPLIB_MESSAGES, 1);
 	uint8_t *pst2 = pceplib_malloc(PCEPLIB_MESSAGES, 1);
 	uint8_t *pst3 = pceplib_malloc(PCEPLIB_MESSAGES, 1);
 	*pst1 = SR_TE_PST;
-	*pst2 = 2;
+	*pst2 = PCECC_PST;
 	*pst3 = 3;
 	dll_append(pst_list, pst1);
 	dll_append(pst_list, pst2);
@@ -241,7 +241,7 @@ void test_pcep_tlv_create_path_setup_type_capability(void)
 	pst1 = pceplib_malloc(PCEPLIB_MESSAGES, 1);
 	pst2 = pceplib_malloc(PCEPLIB_MESSAGES, 1);
 	*pst1 = SR_TE_PST;
-	*pst2 = 2;
+	*pst2 = PCECC_PST;
 	dll_append(pst_list, pst1);
 	dll_append(pst_list, pst2);
 	dll_append(sub_tlv_list, sub_tlv);
@@ -310,7 +310,7 @@ void test_pcep_tlv_create_path_setup_type_capability(void)
 	pst1 = pceplib_malloc(PCEPLIB_MESSAGES, 1);
 	pst2 = pceplib_malloc(PCEPLIB_MESSAGES, 1);
 	*pst1 = SR_TE_PST;
-	*pst2 = 2;
+	*pst2 = PCECC_PST;
 	dll_append(pst_list, pst1);
 	dll_append(pst_list, pst2);
 	tlv = pcep_tlv_create_path_setup_type_capability(pst_list, NULL);