[olsr-dev] Why are 1-hop routes with destination==gateway added
Fri Jul 21 09:50:20 CEST 2006
All routers need not be on the same subnet in a MANET.
Therefore it is absolutley nessecarry to add 1-hop neighbors to the
routing table - or all other route going via this neighbor will also
fail(if the negihbor is not on the same subnet as we are).
> Hi all,
> I have a small (maybe stupid) question.
> In the function olsr_add_routes_in_kernel, there is special code that adds
> 1-hop routes to destinations, the gateway being the
> destination itself. These routes are consequently added first (and deleted
> last in the function olsr_delete_routes_from_kernel).
> My question is: why are these routes added at all? Since these are 1-hop
> neighbors, these destinations would have been reached
> anyway, because the network routes to all connected networks are already
> in the routing table by default.
> olsr-dev mailing list
More information about the Olsr-dev