From 8d6a4ed5baf8ac6366389cfb1f4aaf4797c31ce4 Mon Sep 17 00:00:00 2001 From: Maxence Younsi Date: Mon, 24 Apr 2023 14:37:14 +0200 Subject: [PATCH] bgpd: remove timestamp from bmp rib-out monitoring messages rib-out monitoring messages' timestamp must be the timestamp the path has been added to adj-rib-out this information is not available as of now in FRR so we set the timestamp flag to 0 Signed-off-by: Maxence Younsi --- bgpd/bgp_bmp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bgpd/bgp_bmp.c b/bgpd/bgp_bmp.c index 87f47230de81..3b37e44992af 100644 --- a/bgpd/bgp_bmp.c +++ b/bgpd/bgp_bmp.c @@ -1472,7 +1472,7 @@ static int bmp_monitor_rib_out_pre_updgrp_walkcb(struct update_group *updgrp, bmp_get_peer_type(PAF_PEER(paf)), bgp_dest_get_prefix(ctx->dest), ctx->prd, ctx->attr, SUBGRP_AFI(subgrp), SUBGRP_SAFI(subgrp), addpath_tx_id, - monotime(NULL), ctx->bpi); + (time_t)(-1L), ctx->bpi); *ctx->written_ref = true; } @@ -1555,7 +1555,7 @@ static int bmp_monitor_rib_out_post_updgrp_walkcb(struct update_group *updgrp, bmp_get_peer_type(PAF_PEER(paf)), ctx->pfx, ctx->prd, advertised_attr, SUBGRP_AFI(subgrp), SUBGRP_SAFI(subgrp), addpath_tx_id, - monotime(NULL), ctx->bpi); + (time_t)(-1L), ctx->bpi); *ctx->written_ref = true; } @@ -2176,7 +2176,7 @@ static bool bmp_wrqueue_ribout(struct bmp *bmp, struct pullwr *pullwr) bmp_monitor(bmp, peer, BMP_PEER_FLAG_O, bmp_get_peer_type(peer), &bqe->p, prd, bpi ? bpi->attr : NULL, afi, safi, - addpath_tx_id, monotime(NULL), bpi); + addpath_tx_id, (time_t)(-1L), bpi); written = true; } @@ -2200,7 +2200,7 @@ static bool bmp_wrqueue_ribout(struct bmp *bmp, struct pullwr *pullwr) bmp_monitor(bmp, peer, BMP_PEER_FLAG_L | BMP_PEER_FLAG_O, bmp_get_peer_type(peer), &bqe->p, prd, advertised_attr, afi, safi, addpath_tx_id, - monotime(NULL), NULL); + (time_t)(-1L), NULL); written = true; }