[Olsr-dev] Bug in nameservice plugin - When OLSR started with interfaces down main addr is not later updated on ifup
ZioPRoTo (Saverio Proto)
(spam-protected)
Thu Apr 29 16:31:45 CEST 2010
OLSR-0.5.6-r8
If you launch OLSR with the interface(s) down the nameservice plugin
is loaded but main addr is unknown.
when later the interface goes up, the routing daemon detects the
interface and sets the new main addr to talk to OLSR protocol, but the
plugin status is not updated. You will have nameservice packets
without the HOST field in the packet.
I can try to provide a patch, but how to trigger a event into the
plugin when the interface goes up ?? There is some way to register a
function to that event ?
Saverio
---------- LOADING LIBRARY olsrd_nameservice.so.0.3 ----------
OLSRD nameservice plugin 0.3
Checking plugin interface version: 5 - OK
Trying to fetch plugin init function: OK
Trying to fetch parameter table and it's size...
Sending parameters...
"interval"/"10"... Got int 10
interval: OK
"resolv-file"/"/etc/resolv.conf"... Got string /etc/resolv.conf
resolv-file: OK
"hosts-file"/"/fairvpn/hosts/nodes"... Got string /fairvpn/hosts/nodes
hosts-file: OK
"name"/"boot.node"... Got got boot.node (main address)
name: OK
Running plugin_init function...
NAME PLUGIN: insert main addr for name boot.node
checking 0.0.0.0
NAME PLUGIN: invalid or malformed parameter boot.node (0.0.0.0), fix
your config!
Parser: registering event for type 130
Register parse function: Added function for type 130
TIMER: start unknown timer 0x80977b0 firing in 00:00:07.940, ctx (nil)
---------- LIBRARY olsrd_nameservice.so.0.3 LOADED ----------
More information about the Olsr-dev
mailing list