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 <philippe.guibert@6wind.com>
This commit is contained in:
Philippe Guibert 2025-02-06 11:32:46 +01:00
parent 2a143041f8
commit 323d8edcd7

View File

@ -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)