Commit 9ff8f334 authored by Martin Mareš's avatar Martin Mareš

Update `remains' counter correctly.

parent d69e5ff2
......@@ -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
~~~~~~~~~~~~~
......
......@@ -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);
}
......
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