]> 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 17:22:03 +0000 (19:22 +0200)
commit681eee879b8f4ec16002a9d8c1c40357d45fefca
tree24d1d0216fe85b251175b2ddb995a53e970929a9
parent127107e67a1b25b944ae080e84a28168ee2bcca7
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