[Olsr-dev] dyn_gw does not handle "Interval" parameter properly
    Jens Nachtigall 
    (spam-protected)
       
    Thu Nov  1 21:52:32 CET 2007
    
    
  
Hi,
if one sets the Interval as in 
LoadPlugin "olsrd_dyn_gw.so.0.4"
{
    PlParam     "Interval"   "40"
    PlParam     "Ping"  "193.99.144.80"
}
then it pings the given IP address all the time. Obviously there is some 
problem with the cast and the sleep function. See the attached patch, that 
fixes the issue. Could you please apply it?
Nonetheless I wonder if a parsing function like "set_plugin_int" instead 
of "set_plugin_double" would make more sense. Who cares about doing a ping 
every 12.5 sec (double) instead of 12 sec (int)?
Kind regards,
jens
-------------- next part --------------
A non-text attachment was scrubbed...
Name: olsrd_dyn_gw-double-int.diff
Type: text/x-diff
Size: 784 bytes
Desc: not available
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20071101/93783b3f/attachment.diff>
    
    
More information about the Olsr-dev
mailing list