When an ipfw fwd rule, inbound or outbound, chooses a link-local next
hop, the tag carries the address with its zone embedded and
sin6_scope_id set to 0. ip6_tryforward() passes sin6_scope_id to
fib6_lookup(), which takes the zone of a link-local address from that
argument, so the next hop is looked up without a zone. The lookup
misses the route to the link and finds the fe80::/10 reject route that
rc.d installs, a default route or nothing, and the packet is lost.
ip6_forward() takes the zone from the address, so this only shows when
net.inet6.ip6.redirect is 0.
Take the zone from the address in ip6_findroute(). The address already
has the form if_output() expects, as in ip6_forward(), and any other
destination carries no zone, so its lookup is the same as before.
fwd:nexthop_v6 now also forwards to a link-local next hop.
Fixes: 5a1842a2 ("Add ip6_tryforward() - a run to completion ...")
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")