mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-15 19:02:17 +00:00
bgpd: Fix for Helper node doesn't set R-bit in OPEN message after the reload.
BGP Helper node doesn't set R-bit in OPEN message after the restart or reload of the BGP router. Signed-off-by: Biswajit Sadhu <sadhub@vmware.com>
This commit is contained in:
parent
d7b3cda6f7
commit
6102cb7fe4
@ -1332,9 +1332,7 @@ static void bgp_peer_send_gr_capability(struct stream *s, struct peer *peer,
|
|||||||
rcapp = stream_get_endp(s);
|
rcapp = stream_get_endp(s);
|
||||||
stream_putc(s, 0);
|
stream_putc(s, 0);
|
||||||
restart_time = peer->bgp->restart_time;
|
restart_time = peer->bgp->restart_time;
|
||||||
if ((peer->bgp->t_startup) &&
|
if (peer->bgp->t_startup) {
|
||||||
(CHECK_FLAG(peer->flags,
|
|
||||||
PEER_FLAG_GRACEFUL_RESTART))) {
|
|
||||||
SET_FLAG(restart_time, RESTART_R_BIT);
|
SET_FLAG(restart_time, RESTART_R_BIT);
|
||||||
SET_FLAG(peer->cap, PEER_CAP_RESTART_BIT_ADV);
|
SET_FLAG(peer->cap, PEER_CAP_RESTART_BIT_ADV);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user