diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-11-06 15:30:32 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2024-11-26 11:59:39 -0500 | 
| commit | 7bf3f53e44b8e54cdc92450ae6a68b7f17d36684 (patch) | |
| tree | 8baae552feef08ab096822b16b05925bc60a1cd4 /bgpd/bgp_fsm.c | |
| parent | 1baeb81632d46c20f7f75e619cfea73784d66c01 (diff) | |
bgpd: peer_active is connection oriented, make it so
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgp_fsm.c')
| -rw-r--r-- | bgpd/bgp_fsm.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c index 463296f025..cadef39974 100644 --- a/bgpd/bgp_fsm.c +++ b/bgpd/bgp_fsm.c @@ -325,8 +325,8 @@ void bgp_timer_set(struct peer_connection *connection)  		/* First entry point of peer's finite state machine.  In Idle  		   status start timer is on unless peer is shutdown or peer is  		   inactive.  All other timer must be turned off */ -		if (BGP_PEER_START_SUPPRESSED(peer) || !peer_active(peer) -		    || peer->bgp->vrf_id == VRF_UNKNOWN) { +		if (BGP_PEER_START_SUPPRESSED(peer) || !peer_active(connection) || +		    peer->bgp->vrf_id == VRF_UNKNOWN) {  			EVENT_OFF(connection->t_start);  		} else {  			BGP_TIMER_ON(connection->t_start, bgp_start_timer,  | 
