summaryrefslogtreecommitdiff
path: root/bgpd/bgp_labelpool.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2023-02-16 13:46:32 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2023-03-22 12:06:29 +0100
commitb314ae7eb4df558f30fea974aa94b712067f82a0 (patch)
treee3a140193f1233e9124c14af59427244edf8b75e /bgpd/bgp_labelpool.h
parentc9b416cbd13e1debefdf16293bf59f5d2086253f (diff)
bgpd: update time of last change when label nexthop entry changed
A timer attribute is added for each label nexthop entry, in order to know when the last change occured. The timer value will be used for troubleshooting by a show command in the next commit. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_labelpool.h')
-rw-r--r--bgpd/bgp_labelpool.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_labelpool.h b/bgpd/bgp_labelpool.h
index c26d9cd8cf..9e984247d7 100644
--- a/bgpd/bgp_labelpool.h
+++ b/bgpd/bgp_labelpool.h
@@ -74,6 +74,8 @@ struct bgp_label_per_nexthop_cache {
/* 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;
};