CVSROOT:        /cvs
Module name:    src
Changes by:     s...@cvs.openbsd.org    2009/03/29 15:42:30

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

Log message:
As a first step towards SPF tree calculation, prepare for proper
next-hop calculation.

In OSPFv3, next-hop IP addresses are always link-local.
The kernel will want to know which interface the link-local
address belongs to, so we need an ifindex in struct v_nexthop
in addition to the IP address.

Because we cannot determine a link-local next hop IP address
for transit networks, only the outgoing interface will be recorded.

Update calc_nexthop_add() according to the above.

Also add new helpers calc_nexthop_lladdr() and calc_nexthop_transit_nbr(),
to figure out link-local addresses of nexthop neighbours.

ok claudio@

Reply via email to