]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Nest: Reset export route counter during graceful restart
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 6 Apr 2016 23:10:24 +0000 (01:10 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 6 Apr 2016 23:10:24 +0000 (01:10 +0200)
Counter exp_routes is increased during initial route feed after GR
recovery, so it has to start with zero, otherwise BIRD will end with
double value in exp_routes.

nest/proto.c

index d04da333c6731809acabb21dce1e834ac64b2181..436377f1b51ef6a44972f816f0efe9a625e6f803 100644 (file)
@@ -1260,6 +1260,7 @@ proto_want_export_down(struct proto *p)
     rt_feed_baby_abort(p);
 
   p->export_state = ES_DOWN;
+  p->stats.exp_routes = 0;
   proto_unlink_ahooks(p);
 }