Skip to content

Commit

Permalink
bgpd: fix bmp loc-rib peer up message should use correct AS number
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
pguibert6WIND committed Feb 10, 2025
1 parent 4d11ff3 commit 7598721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_bmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7598721

Please sign in to comment.