]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_labelpool.h
Merge pull request #13649 from donaldsharp/unlock_the_node_or_else
[mirror_frr.git] / bgpd / bgp_labelpool.h
index 0e965f3b9a050842c63e77e5ee9624e16210a4c4..b33527186e0a10b876494ec4a9db104a48352c36 100644 (file)
@@ -66,9 +66,16 @@ struct bgp_label_per_nexthop_cache {
        /* back pointer to bgp instance */
        struct bgp *to_bgp;
 
+       /* copy a nexthop resolution from bgp nexthop tracking
+        * used to extract the interface nexthop
+        */
+       struct nexthop *nh;
+
        /* list of path_vrfs using it */
        LIST_HEAD(path_lists, bgp_path_info) paths;
 
+       time_t last_update;
+
        /* Back pointer to the cache tree this entry belongs to. */
        struct bgp_label_per_nexthop_cache_head *tree;
 };
@@ -85,4 +92,5 @@ bgp_label_per_nexthop_new(struct bgp_label_per_nexthop_cache_head *tree,
 struct bgp_label_per_nexthop_cache *
 bgp_label_per_nexthop_find(struct bgp_label_per_nexthop_cache_head *tree,
                           struct prefix *nexthop);
+void bgp_label_per_nexthop_init(void);
 #endif /* _FRR_BGP_LABELPOOL_H */