From caa9c57c7a6806873ca47f415d2e045dc12329e3 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Thu, 6 Feb 2025 11:32:46 +0100 Subject: [PATCH] bgpd: fix bmp loc-rib peer up message should use correct AS number The transmitted AS value in te tx open message of the peer up loc-rib message is set to 0. Actually, it should reflect the AS value of the current BGP instance. Signed-off-by: Philippe Guibert --- bgpd/bgp_bmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_bmp.c b/bgpd/bgp_bmp.c index f1359346c85f..cfd6e439356e 100644 --- a/bgpd/bgp_bmp.c +++ b/bgpd/bgp_bmp.c @@ -2238,7 +2238,7 @@ static void bmp_bgp_peer_vrf(struct bmp_bgp_peer *bbpeer, struct bgp *bgp) stream_free(s); - s = bgp_open_make(peer, send_holdtime, local_as, &bgp->router_id); + s = bgp_open_make(peer, send_holdtime, bgp->as, &bgp->router_id); bbpeer->open_tx_len = open_len; if (bbpeer->open_tx) XFREE(MTYPE_BMP_OPEN, bbpeer->open_tx);