bird/proto/ospf
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 OSPF: Support of authentication trailer for OSPFv3 2018-04-25 15:54:53 +02:00
dbdes.c OSPF: Support of authentication trailer for OSPFv3 2018-04-25 15:54:53 +02:00
Doc Doc. 2000-06-07 23:23:37 +00:00
hello.c OSPF: Support of authentication trailer for OSPFv3 2018-04-25 15:54:53 +02:00
iface.c OSPF: Support of authentication trailer for OSPFv3 2018-04-25 15:54:53 +02:00
lsack.c Fininshing integrated OSPF. 2014-11-03 10:42:55 +01:00
lsalib.c OSPF: Support of address families in OSPFv3 2017-10-10 16:10:02 +02:00
lsalib.h OSPF: Update to new timers 2017-12-07 13:53:42 +01:00
lsreq.c Fininshing integrated OSPF. 2014-11-03 10:42:55 +01:00
lsupd.c Timers: Revert temporary names and remove old timer.h 2017-12-07 13:54:59 +01:00
Makefile Unit Testing for BIRD 2016-11-09 16:36:34 +01:00
neighbor.c OSPF: Support of authentication trailer for OSPFv3 2018-04-25 15:54:53 +02:00
ospf.c Do not initialize route metrics in import_control hook 2018-05-24 14:51:05 +02:00
ospf.h OSPF: Support of authentication trailer for OSPFv3 2018-04-25 15:54:53 +02:00
packet.c OSPF: Support of authentication trailer for OSPFv3 2018-04-25 15:54:53 +02:00
rt.c Timers: Revert temporary names and remove old timer.h 2017-12-07 13:54:59 +01:00
rt.h Merge branch 'int-new' into nexthop-merged 2017-02-22 11:58:04 +01:00
topology.c Do not initialize route metrics in import_control hook 2018-05-24 14:51:05 +02:00
topology.h OSPF: Update to new timers 2017-12-07 13:53:42 +01:00