[Olsr-dev] MainIp and SrcIpRoutes do not work
Jernej Kos
(spam-protected)
Tue Aug 31 18:15:20 CEST 2010
Hello!
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?).
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/6307a405/attachment.sig>
More information about the Olsr-dev
mailing list