diff options
| author | Stephen Worley <sworley@nvidia.com> | 2021-04-22 17:19:03 -0400 | 
|---|---|---|
| committer | Stephen Worley <sworley@nvidia.com> | 2021-04-22 17:25:15 -0400 | 
| commit | 45691de9a0a806dc67d4304044667f05a8caef09 (patch) | |
| tree | a85d07a42c070b51236f5bc83090f5fa492265f2 /zebra/zebra_nhg.h | |
| parent | 65f137fe3c3b5d3defe21735ddd6990bcb20ab4f (diff) | |
zebra: add uptime to NHEs
Add uptime for use with NHEs to keep track of how
long we have had this NHE in our rib without an update.
This is treated exactly the same as the re->uptime for
routes. When we get an update for a route, we reset the
uptime.
Signed-off-by: Stephen Worley <sworley@nvidia.com>
Diffstat (limited to 'zebra/zebra_nhg.h')
| -rw-r--r-- | zebra/zebra_nhg.h | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/zebra_nhg.h b/zebra/zebra_nhg.h index 0489f059be..afbf1f6793 100644 --- a/zebra/zebra_nhg.h +++ b/zebra/zebra_nhg.h @@ -51,6 +51,9 @@ struct nhg_hash_entry {  	afi_t afi;  	vrf_id_t vrf_id; +	/* Time since last update */ +	time_t uptime; +  	/* Source protocol - zebra or another daemon */  	int type;  | 
