diff options
author | Martin Mares <mj@ucw.cz> | 2000-05-08 14:32:19 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-05-08 14:32:19 +0000 |
commit | 9ff8f334edec974b16497e1e74172977e0fff221 (patch) | |
tree | 9234ef6274043bda4cffd718cbb23ff34558f1d9 | |
parent | d69e5ff2ad8b552c22770e4c85bd7c5afafe2816 (diff) |
Update `remains' counter correctly.
-rw-r--r-- | TODO | 3 | ||||
-rw-r--r-- | proto/bgp/packets.c | 1 |
2 files changed, 2 insertions, 2 deletions
@@ -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 ~~~~~~~~~~~~~ diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index 88d960d8..7a866fca 100644 --- a/proto/bgp/packets.c +++ b/proto/bgp/packets.c @@ -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); } |