0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00
bird/proto/rip
Ondrej Zajicek (work) feae132e0f Do not initialize route metrics in import_control hook
During route export, the receiving protocol often initialized route
metrics to default value in its import_control hook before export filter
was executed. This is inconsistent with the expectation that an export
filter would process the same route as one in the routing table and it
breaks setting these metrics before (e.g. for static routes directly in
static protocol).

The patch removes the initialization of route metrics in import_control
hook, the default values are already handled in rt_notify hook called
after export filters.

The patch also changed the behavior of OSPF to keep metrics when a route
is reannounced between OSPF instances (to be consistent with other
protocols) and the behavior when both ospf_metric1 and ospf_metric2
are specified (to have more expected behavior).
2018-05-24 14:51:05 +02:00
..
config.Y Enable ECMP and Link detection by default 2017-12-08 16:00:33 +01:00
Doc Major RIP redesign 2015-10-05 13:18:10 +02:00
Makefile Unit Testing for BIRD 2016-11-09 16:36:34 +01:00
packets.c Merge commit '7b2c5f3d2826e3175bf31b1c36056c9efc587a2b' into int-new 2017-12-07 18:35:46 +01:00
rip.c Do not initialize route metrics in import_control hook 2018-05-24 14:51:05 +02:00
rip.h Timers: Revert temporary names and remove old timer.h 2017-12-07 13:54:59 +01:00