]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: fix bmp loc-rib peer up message should use correct AS number 18037/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 6 Feb 2025 10:32:46 +0000 (11:32 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 11 Feb 2025 10:49:28 +0000 (11:49 +0100)
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>
bgpd/bgp_bmp.c

index 5dc90b5c829fbeffc08d6110ce600b85c2eeb2f6..b1bff82b0550feb1177d02630a07756d13d634be 100644 (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)