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>
/* 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;
};
LIST_INSERT_HEAD(&(blnc->paths), pi, label_nh_thread);
pi->label_nexthop_cache = blnc;
pi->label_nexthop_cache->path_count++;
+ blnc->last_update = monotime(NULL);
}
/* then add or update the selected nexthop */