diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2016-06-01 19:19:30 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-23 15:31:12 +0200 |
commit | ce54994727bf237e0f89168d6818b04ea79f090d (patch) | |
tree | bd363cc85b7031136d4d8d51407ed7bd8c737cc3 /lib/nexthop.h | |
parent | ldpd: add vtysh support (diff) | |
download | frr-ce54994727bf237e0f89168d6818b04ea79f090d.tar.xz frr-ce54994727bf237e0f89168d6818b04ea79f090d.zip |
mpls: add support for LDP LSPs
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/nexthop.h')
-rw-r--r-- | lib/nexthop.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/nexthop.h b/lib/nexthop.h index c06dfe0e2..e66e0eee2 100644 --- a/lib/nexthop.h +++ b/lib/nexthop.h @@ -85,6 +85,9 @@ struct nexthop * Only one level of recursive resolution is currently supported. */ struct nexthop *resolved; + /* Type of label(s), if any */ + enum lsp_types_t nh_label_type; + /* Label(s) associated with this nexthop. */ struct nexthop_label *nh_label; }; @@ -109,7 +112,7 @@ 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_add_labels (struct nexthop *, enum lsp_types_t, 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); |