diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2016-06-01 14:19:30 -0300 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-23 09:31:12 -0400 | 
| commit | ce54994727bf237e0f89168d6818b04ea79f090d (patch) | |
| tree | bd363cc85b7031136d4d8d51407ed7bd8c737cc3 /lib/nexthop.h | |
| parent | 4fcbf6e2d9a3c1f13d142e9b0dbd2369ec2b0bda (diff) | |
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 c06dfe0e25..e66e0eee20 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);  | 
