From 7598721c84912856b8543d6eecd3f559900be55a 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 5dc90b5c829f..b1bff82b0550 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); open_len = stream_get_endp(s); bbpeer->open_tx_len = open_len; if (bbpeer->open_tx)