[Olsr-dev] SmartGW client side questions

Henning Rogge (spam-protected)
Mon Apr 26 14:53:39 CEST 2010

On Mon April 26 2010 14:38:55 Sven-Ola Tuecke wrote:
> Hey,
> patch? Yes - may be sufficient with #ifdef LINUX_2.4 as with the NIIT
> stuff. On multi-olsr-iface nodes one may experience no-inet if the
> interface with the originator IP goes down - but that won't harm too much
> in real-life IMO.
The 0.6.0 codebase contains code to create an additional localhost interface 
with the originator IP (but at the moment it's only active when sourceip mode 
is active).

> And with "plugin" you mean: Write new one. OK - got it. I may extend
> "dyngw_plain" for this (something that reads a /tmp/gw.txt file and act
> accordingly)
You need to implement 4 functions and put them into a callback struct (see 
src/gateway.h, line 86):

struct olsr_gw_handler {
  void (* handle_startup)(void);
  void (* select_gateway) (bool ipv4, bool ipv6);
  void (* handle_update_gw)(struct gateway_entry *);
  void (* handle_delete_gw)(struct gateway_entry *);

src/gateway_default_handler.c contains a sample implementation.

Henning Rogge

Diplom-Informatiker Henning Rogge , Fraunhofer-Institut für
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Neuenahrer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-961,   Fax +49 228 9435 685
mailto:(spam-protected) http://www.fkie.fraunhofer.de
GPG: E1C6 0914 490B 3909 D944 F80D 4487 C67C 55EC CFE0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20100426/9b5baf58/attachment.sig>

More information about the Olsr-dev mailing list