[Olsr-dev] [Battlemesh] OLSR src IP bug

Juliusz Chroboczek (spam-protected)
Sun Apr 3 20:50:06 CEST 2011

> other approach is (like babel) to rely on the somewhat
> unexpected/unexplainable differences in kernel for routes having a gateway,
> and hope they do what we want in all conditions,..

Hmm... ip_rt_get_source(route.c) calls inet_select_addr with the gateway
as second parameter.  If the gateway is set, inet_select_addr(devinet.c)
will choose the address that matches the gateway address; if it's not,
then it will simply choose the first address.

It looks to me like the "no explicit gw" case is buggy, i.e. it only
works by accident.

-- Juliusz

More information about the Olsr-dev mailing list