summaryrefslogtreecommitdiff
path: root/proto/bgp/packets.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2018-08-01 17:35:39 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2018-08-01 17:35:39 +0200
commit4abccabd7b10808c2ebb9ad4f6cbac3fe47cfb8f (patch)
tree73eb092320d1f16af59356380bb6da1be1214325 /proto/bgp/packets.c
parent6be71641ef3baa8658d031f3624f4481b493bdaf (diff)
BGP: Minor fixes in long-lived graceful restart
Diffstat (limited to 'proto/bgp/packets.c')
-rw-r--r--proto/bgp/packets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c
index 0d1a3414..a39670ef 100644
--- a/proto/bgp/packets.c
+++ b/proto/bgp/packets.c
@@ -910,7 +910,7 @@ bgp_parse_capabilities(struct bgp_conn *conn, byte *opt, int len)
conn->peer_llgr_able = 0;
conn->peer_llgr_time = 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 */
{
conn->peer_llgr_able = 1;