diff options
| author | mxyns <mx.yns@outlook.fr> | 2022-07-29 20:06:08 +0200 | 
|---|---|---|
| committer | Maxence Younsi <mx.yns@outlook.fr> | 2023-11-04 12:17:48 +0100 | 
| commit | 90ffa97e3817115a3076787dff1b98698c9d4034 (patch) | |
| tree | a3aaa0699e86e3b1ed45ec8c742dd206ea120bab /bgpd/bgp_bmp.c | |
| parent | 6691e1dc61636598ed8ae8792f32e802365e03af (diff) | |
bgpd: beginning to add rib_uptime field for loc-rib timestamp
added time_t field to bgp_path_info
set value before bgp dp hook is called
value not set in the msg yet, testing and double checking is needed before
Signed-off-by: Maxence Younsi <mx.yns@outlook.fr>
Diffstat (limited to 'bgpd/bgp_bmp.c')
| -rw-r--r-- | bgpd/bgp_bmp.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_bmp.c b/bgpd/bgp_bmp.c index 6a48cb3e5c..f74647f094 100644 --- a/bgpd/bgp_bmp.c +++ b/bgpd/bgp_bmp.c @@ -1165,7 +1165,7 @@ afibreak:  	    CHECK_FLAG(bmp->targets->afimon[afi][safi], BMP_MON_LOC_RIB)) {  		bmp_monitor(bmp, bpi->peer, 0, BMP_PEER_TYPE_LOC_RIB_INSTANCE,  			    bmp_get_peer_distinguisher(bmp, afi), bn_p, prd, -			    bpi->attr, afi, safi, bpi->uptime); +			    bpi->attr, afi, safi, bpi->rib_uptime);  	}  	if (bpi && CHECK_FLAG(bpi->flags, BGP_PATH_VALID) @@ -1322,7 +1322,7 @@ static bool bmp_wrqueue_locrib(struct bmp *bmp, struct pullwr *pullwr)  	bmp_monitor(bmp, peer, 0, BMP_PEER_TYPE_LOC_RIB_INSTANCE,  		    bmp_get_peer_distinguisher(bmp, afi), &bqe->p, prd,  		    bpi ? bpi->attr : NULL, afi, safi, -		    bpi ? bpi->uptime : monotime(NULL)); +		    bpi ? bpi->rib_uptime : monotime(NULL));  	written = true;  out:  | 
