[olsr-dev] Why are 1-hop routes with destination==gateway added

Andreas Tønnesen (spam-protected)
Fri Jul 21 09:50:20 CEST 2006

Hi Erik,

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).

- Andreas

> 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.
> Erik
> _______________________________________________
> olsr-dev mailing list
> (spam-protected)
> https://www.olsr.org/mailman/listinfo/olsr-dev

More information about the Olsr-dev mailing list