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

Erik Tromp (spam-protected)
Fri Jul 21 09:25:39 CEST 2006


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





More information about the Olsr-dev mailing list