]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/nexthop.h
mpls: add support for LDP LSPs
[mirror_frr.git] / lib / nexthop.h
index c06dfe0e25ac30997316d57bb9ceacb810ddf0bb..e66e0eee20ef08eb0221c60238c6bc3340a616ac 100644 (file)
@@ -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);