mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 20:28:43 +00:00
BGP: Minor fixes in long-lived graceful restart
This commit is contained in:
parent
6be71641ef
commit
4abccabd7b
@ -129,7 +129,7 @@ struct bgp_conn {
|
|||||||
u8 peer_gr_aflags;
|
u8 peer_gr_aflags;
|
||||||
u8 peer_llgr_aware;
|
u8 peer_llgr_aware;
|
||||||
u8 peer_llgr_able;
|
u8 peer_llgr_able;
|
||||||
u16 peer_llgr_time;
|
uint peer_llgr_time;
|
||||||
u8 peer_llgr_aflags;
|
u8 peer_llgr_aflags;
|
||||||
u8 peer_ext_messages_support; /* Peer supports extended message length [draft] */
|
u8 peer_ext_messages_support; /* Peer supports extended message length [draft] */
|
||||||
unsigned hold_time, keepalive_time; /* Times calculated from my and neighbor's requirements */
|
unsigned hold_time, keepalive_time; /* Times calculated from my and neighbor's requirements */
|
||||||
|
@ -910,7 +910,7 @@ bgp_parse_capabilities(struct bgp_conn *conn, byte *opt, int len)
|
|||||||
conn->peer_llgr_able = 0;
|
conn->peer_llgr_able = 0;
|
||||||
conn->peer_llgr_time = 0;
|
conn->peer_llgr_time = 0;
|
||||||
conn->peer_llgr_aflags = 0;
|
conn->peer_llgr_aflags = 0;
|
||||||
for (i = 0; i < cl; i += 4)
|
for (i = 0; i < cl; i += 7)
|
||||||
if (opt[2+i+0] == 0 && opt[2+i+1] == BGP_AF && opt[2+i+2] == 1) /* Match AFI/SAFI */
|
if (opt[2+i+0] == 0 && opt[2+i+1] == BGP_AF && opt[2+i+2] == 1) /* Match AFI/SAFI */
|
||||||
{
|
{
|
||||||
conn->peer_llgr_able = 1;
|
conn->peer_llgr_able = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user