CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2026/11/24 06:26:11

Modified files:
        usr.sbin/ospf6d: rde_spf.c 

Log message:
Fix link-local nexthop calculation for P2P networks

The information used to lookup the link LSA of a router depends on the
rtr_link type. For transit networks the nbr_rtr_id and nbr_iface_id are
set to the DR rtr_id and iface_id. In that case the adv_rtr and iface_id
of that router need to be used for the lookup. For p2p and virtual links
the nbr_rtr_id and nbr_iface_id need to be used instead.
This fixes a case where wrong nexthops were selected for p2p links.

Also fix rt_nexthop_add and compare not only the nexthop address but also
the interface index aka scope since all nexthops are link-local and IPv6
is such a beautiful creature that needs scopes.

Based on a report and diff tested by Kapetanakis Giannis (bilias at 
edu.physics.uoc.gr)

Reply via email to