[Olsr-dev] MainIp and SrcIpRoutes do not work
Tue Aug 31 18:15:20 CEST 2010
I have found a problem with enabling both MainIp and SrcIpRoutes in
olsrd 0.6.0. It would appear that even with SrcIpRoutes enabled no src
is specified when adding routes via netlink.
The problem seems to be the configuration parser for amain_ip that only
sets olsr_cnf->main_addr (via inet_pton) but does not set
olsr_cnf->unicast_src_ip which is checked in olsr_os_process_rt_entry.
So src stays at NULL and is not propagated further. When MainIp is not
used the process works because both main_addr and unicast_src_ip are set
to the same value (btw why is there a need for two variables when they
should have the same value anyway?).
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