peer->v_start);
}
EVENT_OFF(peer->connection->t_connect);
- EVENT_OFF(peer->t_holdtime);
+ EVENT_OFF(peer->connection->t_holdtime);
bgp_keepalives_off(peer);
EVENT_OFF(peer->t_routeadv);
EVENT_OFF(peer->connection->t_delayopen);
BGP_TIMER_ON(peer->connection->t_connect,
bgp_connect_timer, peer->v_connect);
- EVENT_OFF(peer->t_holdtime);
+ EVENT_OFF(peer->connection->t_holdtime);
bgp_keepalives_off(peer);
EVENT_OFF(peer->t_routeadv);
break;
BGP_TIMER_ON(peer->connection->t_connect,
bgp_connect_timer, peer->v_connect);
}
- EVENT_OFF(peer->t_holdtime);
+ EVENT_OFF(peer->connection->t_holdtime);
bgp_keepalives_off(peer);
EVENT_OFF(peer->t_routeadv);
break;
EVENT_OFF(peer->connection->t_start);
EVENT_OFF(peer->connection->t_connect);
if (peer->v_holdtime != 0) {
- BGP_TIMER_ON(peer->t_holdtime, bgp_holdtime_timer,
- peer->v_holdtime);
+ BGP_TIMER_ON(peer->connection->t_holdtime,
+ bgp_holdtime_timer, peer->v_holdtime);
} else {
- EVENT_OFF(peer->t_holdtime);
+ EVENT_OFF(peer->connection->t_holdtime);
}
bgp_keepalives_off(peer);
EVENT_OFF(peer->t_routeadv);
* Additionally if a different hold timer has been negotiated
* than we must stop then start the timer again
*/
- EVENT_OFF(peer->t_holdtime);
+ EVENT_OFF(peer->connection->t_holdtime);
if (peer->v_holdtime == 0)
bgp_keepalives_off(peer);
else {
- BGP_TIMER_ON(peer->t_holdtime, bgp_holdtime_timer,
- peer->v_holdtime);
+ BGP_TIMER_ON(peer->connection->t_holdtime,
+ bgp_holdtime_timer, peer->v_holdtime);
bgp_keepalives_on(peer);
}
EVENT_OFF(peer->t_routeadv);
* Additionally if a different hold timer has been negotiated
* then we must stop then start the timer again
*/
- EVENT_OFF(peer->t_holdtime);
+ EVENT_OFF(peer->connection->t_holdtime);
if (peer->v_holdtime == 0)
bgp_keepalives_off(peer);
else {
- BGP_TIMER_ON(peer->t_holdtime, bgp_holdtime_timer,
- peer->v_holdtime);
+ BGP_TIMER_ON(peer->connection->t_holdtime,
+ bgp_holdtime_timer, peer->v_holdtime);
bgp_keepalives_on(peer);
}
break;
case Clearing:
EVENT_OFF(peer->connection->t_start);
EVENT_OFF(peer->connection->t_connect);
- EVENT_OFF(peer->t_holdtime);
+ EVENT_OFF(peer->connection->t_holdtime);
bgp_keepalives_off(peer);
EVENT_OFF(peer->t_routeadv);
EVENT_OFF(peer->connection->t_delayopen);
inq_count = atomic_load_explicit(&peer->connection->ibuf->count,
memory_order_relaxed);
if (inq_count)
- BGP_TIMER_ON(peer->t_holdtime, bgp_holdtime_timer,
+ BGP_TIMER_ON(peer->connection->t_holdtime, bgp_holdtime_timer,
peer->v_holdtime);
EVENT_VAL(thread) = Hold_Timer_expired;
/* Stop all timers. */
EVENT_OFF(connection->t_start);
EVENT_OFF(connection->t_connect);
- EVENT_OFF(peer->t_holdtime);
+ EVENT_OFF(connection->t_holdtime);
EVENT_OFF(peer->t_routeadv);
EVENT_OFF(peer->connection->t_delayopen);
static enum bgp_fsm_state_progress
bgp_fsm_keepalive(struct peer_connection *connection)
{
- EVENT_OFF(connection->peer->t_holdtime);
+ EVENT_OFF(connection->t_holdtime);
return BGP_FSM_SUCCESS;
}
static enum bgp_fsm_state_progress
bgp_fsm_update(struct peer_connection *connection)
{
- EVENT_OFF(connection->peer->t_holdtime);
+ EVENT_OFF(connection->t_holdtime);
return BGP_FSM_SUCCESS;
}