diff options
author | vivek <vivek@cumulusnetworks.com> | 2016-04-16 04:19:37 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-23 15:30:56 +0200 |
commit | 40c7bdb0c9ba746d1f1bdfe1cb4d03aa5f407661 (patch) | |
tree | deeff1f385d86818d5f85258074960cdd2827508 /lib/nexthop.h | |
parent | Quagga: Fix alignment in netlink messages in some cases (diff) | |
download | frr-40c7bdb0c9ba746d1f1bdfe1cb4d03aa5f407661.tar.xz frr-40c7bdb0c9ba746d1f1bdfe1cb4d03aa5f407661.zip |
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 <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-4804
Reviewed By: CCR-3088
Testing Done: Manual in SE-1
Diffstat (limited to 'lib/nexthop.h')
-rw-r--r-- | lib/nexthop.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/nexthop.h b/lib/nexthop.h index 801904306..c06dfe0e2 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); |