Commit e8d42862d7 for frr
commit e8d42862d75cecc8bdf6f7b3efaccc5f6f1c046b
Author: Lincoln Thurlow <lincoln@isi.edu>
Date: Tue Dec 1 11:00:45 2026 -0800
pathd: separate PCEP error codes from NB results
The ERROR_* codes that path_pcep_config_initiate_path() returns share
their values with the PATH_NB_* results it also returns. For example,
ERROR_19_1 is translated to 1 (the same as PATH_NB_OK).
This commit numbers the codes after their PCErr type and value
(ERROR_19_1 is now 1901), which prevents them from colliding with
PATH_NB_* values -1, 0 and 1.
Signed-off-by: Lincoln Thurlow <lincoln@isi.edu>
diff --git a/pathd/path_pcep.h b/pathd/path_pcep.h
index b2cb5363b0..988f7d1262 100644
--- a/pathd/path_pcep.h
+++ b/pathd/path_pcep.h
@@ -294,10 +294,10 @@ struct pcep_error {
struct path *path;
int error_type;
int error_value;
- /* Rfc 8281 PcInitiated error on bad values */
-#define ERROR_19_1 1
-#define ERROR_19_3 2
-#define ERROR_19_9 3
+ /* PCErr type and value, apart from the PATH_NB_* results */
+#define ERROR_19_1 1901
+#define ERROR_19_3 1903
+#define ERROR_19_9 1909
};
/* Path Helper Functions */