Commit 8f0c887a authored by Ondřej Zajíček's avatar Ondřej Zajíček
Browse files

Fixe bug in BGPv6 that causes to send invalid network withdraws.

parent b9539e78
...@@ -252,7 +252,7 @@ bgp_create_update(struct bgp_conn *conn, byte *buf) ...@@ -252,7 +252,7 @@ bgp_create_update(struct bgp_conn *conn, byte *buf)
*tmp++ = 0; *tmp++ = 0;
*tmp++ = BGP_AF_IPV6; *tmp++ = BGP_AF_IPV6;
*tmp++ = 1; *tmp++ = 1;
ea->attrs[0].u.ptr->length = bgp_encode_prefixes(p, tmp, buck, remains-11); ea->attrs[0].u.ptr->length = 3 + bgp_encode_prefixes(p, tmp, buck, remains-11);
size = bgp_encode_attrs(p, w, ea, remains); size = bgp_encode_attrs(p, w, ea, remains);
ASSERT(size >= 0); ASSERT(size >= 0);
w += size; w += size;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment