[Olsr-dev] MainIp and SrcIpRoutes do not work

Jernej Kos (spam-protected)
Tue Aug 31 23:11:40 CEST 2010


Hello!

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 [1]
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.

[1] - src/linux/kernel_routes_nl.c, line 527

Best regards.
-- 
Jernej Kos <(spam-protected)>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20100831/18f23ef9/attachment.sig>


More information about the Olsr-dev mailing list