<div>so logically it must get active aswell if we set an source ip on our tunnel *G<br></div><div><br></div><div>Markus</div><br><div class="gmail_quote">On Mon, Apr 26, 2010 at 2:53 PM, Henning Rogge <span dir="ltr"><<a href="mailto:henning.rogge@fkie.fraunhofer.de">henning.rogge@fkie.fraunhofer.de</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">On Mon April 26 2010 14:38:55 Sven-Ola Tuecke wrote:<br>
> Hey,<br>
><br>
> patch? Yes - may be sufficient with #ifdef LINUX_2.4 as with the NIIT<br>
> stuff. On multi-olsr-iface nodes one may experience no-inet if the<br>
> interface with the originator IP goes down - but that won't harm too much<br>
> in real-life IMO.<br>
</div>The 0.6.0 codebase contains code to create an additional localhost interface<br>
with the originator IP (but at the moment it's only active when sourceip mode<br>
is active).<br>
<div class="im"><br>
> And with "plugin" you mean: Write new one. OK - got it. I may extend<br>
> "dyngw_plain" for this (something that reads a /tmp/gw.txt file and act<br>
> accordingly)<br>
</div>You need to implement 4 functions and put them into a callback struct (see<br>
src/gateway.h, line 86):<br>
<br>
struct olsr_gw_handler {<br>
void (* handle_startup)(void);<br>
void (* select_gateway) (bool ipv4, bool ipv6);<br>
void (* handle_update_gw)(struct gateway_entry *);<br>
void (* handle_delete_gw)(struct gateway_entry *);<br>
};<br>
<br>
src/gateway_default_handler.c contains a sample implementation.<br>
<div><div class="h5"><br>
Henning Rogge<br>
<br>
--<br>
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut für<br>
Kommunikation, Informationsverarbeitung und Ergonomie FKIE<br>
Kommunikationssysteme (KOM)<br>
Neuenahrer Straße 20, 53343 Wachtberg, Germany<br>
Telefon +49 228 9435-961, Fax +49 228 9435 685<br>
mailto:<a href="mailto:henning.rogge@fkie.fraunhofer.de">henning.rogge@fkie.fraunhofer.de</a> <a href="http://www.fkie.fraunhofer.de" target="_blank">http://www.fkie.fraunhofer.de</a><br>
GPG: E1C6 0914 490B 3909 D944 F80D 4487 C67C 55EC CFE0<br>
</div></div><br>--<br>
Olsr-dev mailing list<br>
<a href="mailto:Olsr-dev@lists.olsr.org">Olsr-dev@lists.olsr.org</a><br>
<a href="http://lists.olsr.org/mailman/listinfo/olsr-dev" target="_blank">http://lists.olsr.org/mailman/listinfo/olsr-dev</a><br></blockquote></div><br>