]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: temporary set timestamp to 0 for loc rib monitoring messages
authormxyns <mx.yns@outlook.fr>
Fri, 29 Jul 2022 15:41:30 +0000 (17:41 +0200)
committerMaxence Younsi <mx.yns@outlook.fr>
Sat, 4 Nov 2023 11:17:48 +0000 (12:17 +0100)
set timestamp to 0 for loc rib monitoring messages as path selection time is not available atm
this is temporary and tv is meant to be set to the path selection/install time at some point

Signed-off-by: Maxence Younsi <mx.yns@outlook.fr>
bgpd/bgp_bmp.c

index 15b9998e3cbe14668a49d5ae874344517add62b6..6a48cb3e5ca41df13f47e384d0e8ecbcf802e781 100644 (file)
@@ -326,7 +326,8 @@ static void bmp_per_peer_hdr(struct stream *s, struct bgp* bgp, struct peer *pee
        stream_put_in_addr(s, bgp_id);
 
        /* Timestamp */
-       if (tv) {
+       /* set to 0 for LOC-RIB INSTANCE as install uptime is not saved atm */
+       if (!is_locrib && tv) {
                stream_putl(s, tv->tv_sec);
                stream_putl(s, tv->tv_usec);
        } else {