summaryrefslogtreecommitdiff
path: root/nest/mpls.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2023-09-26 18:50:20 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2023-10-04 13:12:05 +0200
commit9b775859cd7fd54a6fe2bd88359955fce079999d (patch)
tree570b70589b3eb920b817143e52bc5741da31e80d /nest/mpls.h
parente915f99e1cd4f6c90e640f7290c201633ab992f0 (diff)
MPLS: Handle label allocation failures
Diffstat (limited to 'nest/mpls.h')
-rw-r--r--nest/mpls.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/mpls.h b/nest/mpls.h
index 52865f1c..1f3d02dc 100644
--- a/nest/mpls.h
+++ b/nest/mpls.h
@@ -168,7 +168,7 @@ struct mpls_fec *mpls_get_fec_by_label(struct mpls_fec_map *m, u32 label);
struct mpls_fec *mpls_get_fec_by_net(struct mpls_fec_map *m, const net_addr *net, u32 path_id);
struct mpls_fec *mpls_get_fec_by_rta(struct mpls_fec_map *m, const rta *src, u32 class_id);
void mpls_free_fec(struct mpls_fec_map *x, struct mpls_fec *fec);
-void mpls_handle_rte(struct mpls_fec_map *m, const net_addr *n, rte *r, linpool *lp, struct mpls_fec **locked_fec);
+int mpls_handle_rte(struct mpls_fec_map *m, const net_addr *n, rte *r, linpool *lp, struct mpls_fec **locked_fec);
void mpls_handle_rte_cleanup(struct mpls_fec_map *m, struct mpls_fec **locked_fec);
void mpls_rte_insert(net *n UNUSED, rte *r);
void mpls_rte_remove(net *n UNUSED, rte *r);