]> git.ipfire.org Git - thirdparty/bird.git/commit
Shutdown: Do not export routes
authorMaria Matejka <mq@ucw.cz>
Fri, 23 May 2025 18:40:22 +0000 (20:40 +0200)
committerMaria Matejka <mq@ucw.cz>
Sun, 25 May 2025 19:01:49 +0000 (21:01 +0200)
commit8fcf06cc9211ba60dda2f434106f0ef9ce8feb6b
tree52a7c1a7c154617e9a3b2a6ef269faed3e546fd2
parenta392c9e106c166f30ed9d41746c4bd14b02ae404
Shutdown: Do not export routes

When shutting down, the tables start flushing routes before all protocols
are even officially aware of the shutdown. This fix allows for a fast check
whether the shutdown is already running or not, and if so, all exports are
ignored instead of processing them.

One notable exception is the kernel protocol which needs to process all
the exports normally to actually withdraw the routes.

This is a hotfix for #251 and #252. Proper fix will require protocol
state machine refactoring.
conf/conf.c
conf/conf.h
nest/proto.c
proto/aggregator/aggregator.c
proto/babel/babel.c
proto/bgp/attrs.c
proto/l3vpn/l3vpn.c
proto/ospf/ospf.c
proto/ospf/topology.c
proto/pipe/pipe.c
proto/rip/rip.c