]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/nexthop.h
lib: Abstract usage of '%pNHs' so that nexthop groups can use it too
[mirror_frr.git] / lib / nexthop.h
index dd65509aec5f22f42ad4f3e64b8e1cb43ab4f130..c13f1b137686be0c8f0b3c118a84d93c9b429a38 100644 (file)
@@ -182,7 +182,8 @@ struct nexthop *nexthop_from_ipv6(const struct in6_addr *ipv6,
                                  vrf_id_t vrf_id);
 struct nexthop *nexthop_from_ipv6_ifindex(const struct in6_addr *ipv6,
                                          ifindex_t ifindex, vrf_id_t vrf_id);
-struct nexthop *nexthop_from_blackhole(enum blackhole_type bh_type);
+struct nexthop *nexthop_from_blackhole(enum blackhole_type bh_type,
+                                      vrf_id_t nh_vrf_id);
 
 /*
  * Hash a nexthop. Suitable for use with hash tables.
@@ -259,6 +260,7 @@ int nexthop_str2backups(const char *str, int *num_backups,
 #pragma FRR printfrr_ext "%pNH"  (struct nexthop *)
 #endif
 
+ssize_t printfrr_nhs(struct fbuf *buf, const struct nexthop *nh);
 #ifdef __cplusplus
 }
 #endif