Merge pull request #6959 from patrasar/bgp_collision_issue

bgpd: Fix BGP session stuck in OpenConfirm state
This commit is contained in:
Russ White 2020-08-25 07:15:34 -04:00 committed by GitHub
commit de4fa7efe5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -304,8 +304,8 @@ static struct peer *peer_xfer_conn(struct peer *from_peer)
? "accept"
: ""),
peer->host, peer->fd, from_peer->fd);
bgp_stop(peer);
bgp_stop(from_peer);
BGP_EVENT_ADD(peer, BGP_Stop);
BGP_EVENT_ADD(from_peer, BGP_Stop);
return NULL;
}
if (from_peer->status > Active) {
@ -1673,9 +1673,6 @@ static int bgp_fsm_open(struct peer *peer)
/* Send keepalive and make keepalive timer */
bgp_keepalive_send(peer);
/* Reset holdtimer value. */
BGP_TIMER_OFF(peer->t_holdtime);
return 0;
}