diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2016-04-07 01:10:24 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2016-04-07 01:10:24 +0200 |
commit | 06edbb67ed807811654e7fd8f0f9b83766430216 (patch) | |
tree | c5cc9d366ff0906d224720e8a02d12a8f0044915 /nest | |
parent | bd22d7f41d37dec8f7b8b845f6a18c775e66ddfc (diff) |
Nest: Reset export route counter during graceful restart
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.
Diffstat (limited to 'nest')
-rw-r--r-- | nest/proto.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nest/proto.c b/nest/proto.c index d04da333..436377f1 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -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); } |