<br><br><div class="gmail_quote">On Sun, Apr 3, 2011 at 7:31 PM, Juliusz Chroboczek <span dir="ltr"><<a href="mailto:jch@pps.jussieu.fr">jch@pps.jussieu.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
> but the olsrd routes did not specify the src ip (so it`s up to the kernel to<br> > choose *G) </div></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Neither does Babel, and Babel did apparently not have this issue.<br></blockquote><div>but this "saved" bmx *G, see below what "saved" babel *G </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
Babel dumps routes in the kernel by specifying:<br>
<br>
  - dest, plen;<br>
  - gateway;<br>
  - interface.<br>
<br> I suspect the main difference with OLSR is that it specifies the onlink</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
flag, asking the kernel not to apply any smarts to the route.  Is that<br>
correct?<br></blockquote><div>only as side effect</div><div><br></div><div>as u have to specify a gateway to use the onlink flag afair*G</div><div><br></div><div><div>i tried with ip route add on the shell, and as soon if i used a gateway it worked, <br>
if i added onlink or not made no further difference (in this case)</div><div><br></div><div>and as babel specifies the gateway, even if gateway=destination, source address for traffic routed with babel routes was choosen "correctly"</div>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
> therefore olsrd will in future activate its srcip routing mode by default<br>
<br>
</div>What if IP addresses change at runtime?<br></blockquote><div>depends on olsrd configuration, if it has fixed interface/originator ip (in olsrd.conf), it might just not care *G (as it will set its configured adress itself, so infact/simplified user can`t change it any more *G)</div>
<div> </div><div>if it uses primary interface address(es) (default), olsrd detects ip addr changes anyways, via netlink in realtime,..</div><div>but yes it would mean rewriting all/many routes,.. (but afair it already does this, cause an interface that changed primary address is handled as if it went down and come up again,..)</div>
<div><br></div><div>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,..</div><div><br></div>
<div>i don`t like both options to be honest,. *G</div><div><br></div><div>third approach is find out why kernel chooses which address in which situation, and decide than what to do *GG</div><div><br></div><div>Markus</div>
</div>