diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2023-02-16 13:46:32 +0100 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2023-05-09 21:00:57 +0200 |
commit | 60e5bc23b9fabeb2d7e163333be02ccc396e54c1 (patch) | |
tree | 83f34969defe9b663090a6a01972606c7cff9bf6 /bgpd/bgp_labelpool.h | |
parent | bgpd: export redistributed routes with label allocation per nexthop (diff) | |
download | frr-60e5bc23b9fabeb2d7e163333be02ccc396e54c1.tar.xz frr-60e5bc23b9fabeb2d7e163333be02ccc396e54c1.zip |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_labelpool.h b/bgpd/bgp_labelpool.h index d1a2d5f00..ee80aad45 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; }; |