mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-17 08:38:42 +00:00
BGP: Fix graceful restart timer
Should use remote value, not local value.
This commit is contained in:
parent
4842eeaad3
commit
e62cd03307
@ -689,8 +689,11 @@ bgp_handle_graceful_restart(struct bgp_proto *p)
|
||||
c->packets_to_send = 0;
|
||||
}
|
||||
|
||||
/* p->gr_ready -> at least one active channel is c->gr_ready */
|
||||
ASSERT(p->gr_active_num > 0);
|
||||
|
||||
proto_notify_state(&p->p, PS_START);
|
||||
bgp_start_timer(p->gr_timer, p->conn->local_caps->gr_time);
|
||||
bgp_start_timer(p->gr_timer, p->conn->remote_caps->gr_time);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user