]> git.ipfire.org Git - thirdparty/bird.git/commit
Table: Optimal and Any Export refactoring
authorMaria Matejka <mq@ucw.cz>
Tue, 26 Aug 2025 14:14:38 +0000 (16:14 +0200)
committerMaria Matejka <mq@ucw.cz>
Thu, 28 Aug 2025 12:48:32 +0000 (14:48 +0200)
commit34a8a2749b1cab415c48b2cbdb05bc8faf345374
tree1d4bdb51106ec41feb64142dd4298b4fb74818bb
parent23e0b4ab5fb902edee8c4806b5b92494152d5e56
Table: Optimal and Any Export refactoring

The original channel_notify_basic() function was so complicated that it
made more sense to split this one into two different functions, one for
RA_ANY, another for RA_OPTIMAL.

I also changed the export_filter() to not touch the rejected_map, and
just return true/false while modifying the route in place which was
already happening anyway.

In addition to this, I added more comments and I hope that now the code
is better approachable and understandable.

Last but not least, I changed several export flag consistency checks
to just error messages if these were harmless enough.

related to #281
nest/proto.c
nest/rt-table.c