]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Update `remains' counter correctly.
authorMartin Mares <mj@ucw.cz>
Mon, 8 May 2000 14:32:19 +0000 (14:32 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 8 May 2000 14:32:19 +0000 (14:32 +0000)
TODO
proto/bgp/packets.c

diff --git a/TODO b/TODO
index b9026c4f67228e8193685bf94c77da5368cb5278..7eb9bed73af646666ed13c0d46596a0c63c2dcc4 100644 (file)
--- a/TODO
+++ b/TODO
@@ -24,9 +24,8 @@ Core
 
 - bgp: timing of updates?
 - bgp: dump and get_route_info
-- bgp: packet size limit in sending of withdrawals?
 
-- proto: `Changed state to ...' message -> show internal states
+- proto: Don't show repeated `Changed state to ...' messages if only internal states change
 
 Documentation
 ~~~~~~~~~~~~~
index 88d960d8335f435fa8b8db0f790f2e2b7b678a05..7a866fca4abe7cb6f25cecb97f05dd034cef14bb 100644 (file)
@@ -62,6 +62,7 @@ bgp_encode_prefixes(struct bgp_proto *p, byte *w, struct bgp_bucket *buck, unsig
       ipa_hton(a);
       memcpy(w, &a, bytes);
       w += bytes;
+      remains -= bytes;
       rem_node(&px->bucket_node);
       fib_delete(&p->prefix_fib, px);
     }