summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_advertise.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-07-17 15:24:28 +0200
committerDavid Lamparter <equinox@diac24.net>2019-08-30 19:00:45 +0200
commit6566d669a58eabfda5b287ce5622e5d105df2bd8 (patch)
treee43e8ee7205fe99a239547b5de23a5e7d5d6dc93 /bgpd/bgp_advertise.h
parentlib: add monotime_to_realtime() (diff)
downloadfrr-6566d669a58eabfda5b287ce5622e5d105df2bd8.tar.xz
frr-6566d669a58eabfda5b287ce5622e5d105df2bd8.zip
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>
Diffstat (limited to 'bgpd/bgp_advertise.h')
-rw-r--r--bgpd/bgp_advertise.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/bgp_advertise.h b/bgpd/bgp_advertise.h
index 1b55b6e64..c98359875 100644
--- a/bgpd/bgp_advertise.h
+++ b/bgpd/bgp_advertise.h
@@ -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;
};