diff --git a/bgpd/bgp_bmp.c b/bgpd/bgp_bmp.c index 87f47230de81..468dca5ce95c 100644 --- a/bgpd/bgp_bmp.c +++ b/bgpd/bgp_bmp.c @@ -2,6 +2,7 @@ /* BMP support. * Copyright (C) 2018 Yasuhiro Ohara * Copyright (C) 2019 David Lamparter for NetDEF, Inc. + * Copyright (C) 2023 Maxence Younsi */ #include @@ -1472,7 +1473,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 +1556,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 +2177,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 +2201,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; }