From 40c7bdb0c9ba746d1f1bdfe1cb4d03aa5f407661 Mon Sep 17 00:00:00 2001 From: vivek Date: Fri, 15 Apr 2016 19:19:37 -0700 Subject: Quagga: Install label forwarding entries for statically configured LSPs Install the statically configured LSPs into the FIB (kernel). This is done using the new attributes and definitions for MPLS in the kernel - RTA_VIA, RTA_NEWDST and AF_MPLS. Signed-off-by: Vivek Venkatraman Reviewed-by: Donald Sharp Ticket: CM-4804 Reviewed By: CCR-3088 Testing Done: Manual in SE-1 --- lib/nexthop.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/nexthop.h') diff --git a/lib/nexthop.h b/lib/nexthop.h index 801904306e..c06dfe0e25 100644 --- a/lib/nexthop.h +++ b/lib/nexthop.h @@ -84,6 +84,9 @@ struct nexthop * obtained by recursive resolution will be added to `resolved'. * Only one level of recursive resolution is currently supported. */ struct nexthop *resolved; + + /* Label(s) associated with this nexthop. */ + struct nexthop_label *nh_label; }; extern int zebra_rnh_ip_default_route; @@ -106,6 +109,9 @@ void copy_nexthops (struct nexthop **tnh, struct nexthop *nh); void nexthop_free (struct nexthop *nexthop); void nexthops_free (struct nexthop *nexthop); +void nexthop_add_labels (struct nexthop *, u_int8_t, mpls_label_t *); +void nexthop_del_labels (struct nexthop *); + extern const char *nexthop_type_to_str (enum nexthop_types_t nh_type); extern int nexthop_same_no_recurse (struct nexthop *next1, struct nexthop *next2); -- cgit v1.2.3