[Olsr-dev] MainIp and SrcIpRoutes do not work
Tue Aug 31 23:11:40 CEST 2010
On 08/31/2010 09:53 PM, Markus Kittenberger wrote:
> the srcip should be defineable per interface (in the config file) using the
> IPv4Src parameter
As far as I see it the olsr_cnf->unicast_src_ip option is global and is
not per-interface configurable? And this is what the netlink code 
uses to set the source tag for its routes.
Also if you look at the code that configures the main IP address when
the MainIp option is not used, it sets up the unicast_src_ip correctly
(from the first interface defined, same as main_addr). But when MainIp
is used, unicast_src_ip is never defined.
So either unicast_src_ip should be set in oparse.y when processing the
MainIp directive or the netlink code should be modified to use main_addr
instead of unicast_src_ip and the latter removed as it is not used
anywhere else as far as I can see.
 - src/linux/kernel_routes_nl.c, line 527
Jernej Kos <(spam-protected)>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 262 bytes
Desc: OpenPGP digital signature
More information about the Olsr-dev