mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 08:23:56 +00:00
bgpd: add timestamp to bgp_adj_in
If we reject a received update in a filter, it never turns into a bgp_path_info but stays in adj_in. For that case, we don't have any timestamp for the update. Currently, this isn't visible anywhere; BMP will make use of this timestamp (and we can add a CLI option if we want.) Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
parent
8defc5be52
commit
6566d669a5
@ -194,6 +194,7 @@ void bgp_adj_in_set(struct bgp_node *rn, struct peer *peer, struct attr *attr,
|
||||
adj = XCALLOC(MTYPE_BGP_ADJ_IN, sizeof(struct bgp_adj_in));
|
||||
adj->peer = peer_lock(peer); /* adj_in peer reference */
|
||||
adj->attr = bgp_attr_intern(attr);
|
||||
adj->uptime = bgp_clock();
|
||||
adj->addpath_rx_id = addpath_id;
|
||||
BGP_ADJ_IN_ADD(rn, adj);
|
||||
bgp_lock_node(rn);
|
||||
|
@ -101,6 +101,9 @@ struct bgp_adj_in {
|
||||
/* Received attribute. */
|
||||
struct attr *attr;
|
||||
|
||||
/* timestamp (monotime) */
|
||||
time_t uptime;
|
||||
|
||||
/* Addpath identifier */
|
||||
uint32_t addpath_rx_id;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user