summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
500eb6e)
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
+/* process bgp timers only */
void bgp_process_peers_timers()
{
int i;
void bgp_process_peers_timers()
{
int i;
return;
for (i = 0; i < BGP_NUM_PEERS; i++)
return;
for (i = 0; i < BGP_NUM_PEERS; i++)
- bgp_process_timers(&bgp_peers[i]);
+ {
+ struct bgp_peer *peer = &bgp_peers[i];
+
+ if (peer->state == Disabled)
+ continue;
+
+ bgp_process_timers(peer);
+ }
}
static void bgp_process_timers(struct bgp_peer *peer)
}
static void bgp_process_timers(struct bgp_peer *peer)