]> git.puffer.fish Git - mirror/frr.git/commit
ospf6d: fix regression detected by topotest
authorRenato Westphal <renato@opensourcerouting.org>
Mon, 21 Aug 2017 22:43:43 +0000 (19:43 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Wed, 23 Aug 2017 23:25:45 +0000 (20:25 -0300)
commitb30f3b91d4d91e5d58f2f999e2f673aeaf15d653
treed021adecbd9e12f64135677091a513d0f270b366
parent744899219f4214398a3078874a341000a372e29d
ospf6d: fix regression detected by topotest

With the old API, ospf6d always needed to send a nexthop address and a
nexthop interface when advertising a route to zebra. In the case where
the nexthop address didn't exist (e.g. connected route), zebra would
take care of ignore it in the zread_ipv6_add() function.

Now, if we have a nexthop interface but not a nexthop address, we not
only can but we should send a nexthop of type NEXTHOP_TYPE_IFINDEX. zebra
won't fix bad nexthops anymore because the clients have a proper API to
send correct messages.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ospf6d/ospf6_route.c