[Olsr-dev] olsrd dynamic hna

Gioacchino Mazzurco (spam-protected)
Wed Jul 14 15:03:00 CEST 2010


we have a problem!

olsrmain_load_config("/tmp/olsr.conf");

does not refresh hna6 but simply add all hna6 present on the file

then from

Hna6
{
  0::ffff:0AAE:0000 123
  0::ffff:0AAE:0021 125
  fec0:0015:6DD4:F7D1:0000:0000:0000:0000 64
  fec0:0015:6DD5:F7D1:0000:0000:0000:0000 64
}


 we obtain duplicated entry like this

Table: HNA
Destination     Gateway
fec0:15:6dd5:f7d1::/64  fd7d:d7bb:2c97:dec3:0:15:6dd4:f7d1
fec0:15:6dd4:f7d1::/64  fd7d:d7bb:2c97:dec3:0:15:6dd4:f7d1
::ffff:10.174.0.33/125  fd7d:d7bb:2c97:dec3:0:15:6dd4:f7d1
::ffff:10.174.0.0/123   fd7d:d7bb:2c97:dec3:0:15:6dd4:f7d1
fec0:15:6dd5:f7d1::/64  fd7d:d7bb:2c97:dec3:0:15:6dd4:f7d1
fec0:15:6dd4:f7d1::/64  fd7d:d7bb:2c97:dec3:0:15:6dd4:f7d1
::ffff:10.174.0.0/123   fd7d:d7bb:2c97:dec3:0:15:6dd4:f7d1
fec0:15:6dd5:f7d1::/64  fd7d:d7bb:2c97:dec3:0:15:6dd4:f7d1
fec0:15:6dd4:f7d1::/64  fd7d:d7bb:2c97:dec3:0:15:6dd4:f7d1

how to clear hna table before reload configuration?

2010/7/4 Henning Rogge <(spam-protected)>

> Am Samstag 03 Juli 2010, 20:46:27 schrieb Mitar:
> > Hi!
> >
> > On Sat, Jul 3, 2010 at 5:16 PM, ZioPRoTo (Saverio Proto)
> >
> > <(spam-protected)> wrote:
> > > There is any plugin that now uses SIGUSR1 ??
> >
> > Yes. One our internal plugin uses SIGUSR1:
> >
> > http://lists.olsr.org/pipermail/olsr-dev/2010-April/003711.html
> >
> > Could you maybe use SIGHUP? It is quite common to use it for reloading
> > the config.
> >
> > There was an idea to make an API where plugins could register a
> > handler for signal and olsrd would then run them in series. But
> > currently there is nothing yet.
> >
> > > If you think the approach is feasible, and if you think that reloading
> > > the config file has some benefit also for other application scenarios,
> > > we can clean up our patch and push it to the repository.
> >
> > It is definitely a feature which is missing in OLSR for production use
> > (it is really bad when we have to reset the olsrd on our VPN server
> > just to reload the config). But I think that there is probably some
> > more work needed for this to work properly than just reloading config?
> > Plugins maybe have to reinitialize their structures if you change
> > configuration?
> One of the plans for OLSRd 0.7.0 is a better configuration management.
>
> We already have an internal telnet server so plugins can just add a command
> of
> their own without any server code, but the config system is on our list
> too.
>
> But it will have to wait until I got OLSRv2 running.
>
> Henning Rogge
>
> --
> 1) You can't win.
> 2) You can't break even.
> 3) You can't leave the game.
> — The Laws of Thermodynamics, summarized
>
> --
> Olsr-dev mailing list
> (spam-protected)
> http://lists.olsr.org/mailman/listinfo/olsr-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20100714/bf21180b/attachment.html>


More information about the Olsr-dev mailing list