[Olsr-dev] changing hna while olsrd is running

Gioacchino Mazzurco (spam-protected)
Sat Jun 19 12:26:57 CEST 2010

now i am trying to think how to write a function, that take two param a
1)big subnet where to look for free ips and 2)the number of contiguous ips
needed, and return the small subnet assigned to that node
when used may look something like this:

mysubnet=getFreeSpace("", 32);

"" is the big subnet where look for a free space, and 32 is the
number of contiguous ip needed after this mysubnet will contain something
like ""

the function will look for already used ipv4 address on olsr hna6 that match
ipv4 mapped pattern and then return a non used subnet that will used for
auto configuration
"" and 32 are in plugin configuration that may look like:

LoadPlugin "olsrd_auto64conf.so.0.1"
    PlParam "interface" "eth0"
    PlParam  "bigsubnet" ""
    PlParam  "clientnumber" "16"

    PlParam "interface" "ath0"
    PlParam  "bigsubnet" ""
    PlParam  "clientnumber" "32"

this should tell to the plugin to auto configure eth0 to take a subnet for
16 client and ath0 to take a subnet for 32 client

2010/6/19 ZioPRoTo (Saverio Proto) <(spam-protected)>

> > There is also possible to change interface ip from inside an olsrd plugin
> ?
> > Or is more convenient to do an external script for this type of thing and
> > call it from osrd when needed?
> premature optimization ! :)
> try to have something that works calling some system("ifconfig") first :)
> Saverio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20100619/c37fc2dd/attachment.html>

More information about the Olsr-dev mailing list