]> git.ipfire.org Git - thirdparty/bird.git/commit
OSPF: Improved handling of tmpattrs
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 6 Mar 2019 17:14:12 +0000 (18:14 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 6 Mar 2019 17:28:00 +0000 (18:28 +0100)
commit9aa77fccebc4d84b5e1496884cd124d09893041b
tree50e9764686620608901dc6e7853b3c1b3e14814a
parentb9deced219cfda2afe8604b24351ae10ac56f98b
OSPF: Improved handling of tmpattrs

Keep track of whether OSPF tmpattrs are actually defined for given route
(using flags in rte->pflags). That makes them behave more like real
eattrs so a protocol can define just a subset of them or they can be
undefined by filters.

Do not set ospf_metric2 for other than type 2 external OSPF routes and do
not set ospf_tag for non-external OSPF routes. That also fixes a bug
where internal/inter-area route propagated from one OSPF instance to
another is initiated with infinity ospf_metric2.

Thanks to Yaroslav Dronskii for the bugreport.
nest/route.h
nest/rt-table.c
proto/ospf/ospf.c
proto/ospf/rt.c