Commit 17bfafb0a5 for frr

commit 17bfafb0a5d0378fdc96e983118112ba2ebd7cba
Author: Lincoln Thurlow <lincoln@isi.edu>
Date:   Tue Dec 1 11:00:45 2026 -0800

    pathd: allow 64-character names

    pathd drops the last character of a 64-character policy, candidate
    path or segment list name, so two names that only differ in their
    last character become the same.

    frr-pathd.yang allows names of up to 64 characters, but the name
    buffers are 64 bytes including the terminating NUL character.

    This commit sets the name buffers to 65 characters, 64 characters
    for the name, and 1 for the terminating NUL character.

    Signed-off-by: Lincoln Thurlow <lincoln@isi.edu>

diff --git a/pathd/pathd.h b/pathd/pathd.h
index 9d74ab9fb3..7fc21dbe31 100644
--- a/pathd/pathd.h
+++ b/pathd/pathd.h
@@ -195,11 +195,15 @@ RB_HEAD(srte_segment_entry_head, srte_segment_entry);
 RB_PROTOTYPE(srte_segment_entry_head, srte_segment_entry, entry,
 	     srte_segment_entry_compare)

+/* Name length limit in frr-pathd.yang */
+#define SRTE_YANG_NAME_MAX_LENGTH 64
+#define SRTE_NAME_LENGTH	  (SRTE_YANG_NAME_MAX_LENGTH + 1)
+
 struct srte_segment_list {
 	RB_ENTRY(srte_segment_list) entry;

 	/* Name of the Segment List. */
-	char name[64];
+	char name[SRTE_NAME_LENGTH];

 	/* The Protocol-Origin. */
 	enum srte_protocol_origin protocol_origin;
@@ -274,7 +278,7 @@ struct srte_candidate {
 	uint32_t preference;

 	/* Symbolic Name. */
-	char name[64];
+	char name[SRTE_NAME_LENGTH];

 	/* The associated Segment List. */
 	struct srte_segment_list *segment_list;
@@ -336,7 +340,7 @@ struct srte_policy {
 	struct ipaddr endpoint;

 	/* Name */
-	char name[64];
+	char name[SRTE_NAME_LENGTH];

 	/* Binding SID */
 	mpls_label_t binding_sid;