]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixe bug in BGPv6 that causes to send invalid network withdraws.
authorOndrej Zajicek <santiago@crfreenet.org>
Thu, 23 Apr 2009 12:16:05 +0000 (14:16 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Thu, 23 Apr 2009 12:16:05 +0000 (14:16 +0200)
proto/bgp/packets.c

index 184120539bfa1627a088a774b3baa0475bd1e59d..ce3d71e202272fb1b2975a80c74b8a1a1bf72c53 100644 (file)
@@ -252,7 +252,7 @@ bgp_create_update(struct bgp_conn *conn, byte *buf)
       *tmp++ = 0;
       *tmp++ = BGP_AF_IPV6;
       *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);
       ASSERT(size >= 0);
       w += size;