]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/nexthop.h
Quagga: Install label forwarding entries for statically configured LSPs
[mirror_frr.git] / lib / nexthop.h
index 801904306efaba7e3abef1d7a954d5100cf099f1..c06dfe0e25ac30997316d57bb9ceacb810ddf0bb 100644 (file)
@@ -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);