[Olsr-dev] HNA - minor issues

Henning Rogge (spam-protected)
Sat Jan 30 21:16:58 CET 2010


Am Freitag 29 Januar 2010 19:31:17 schrieb Teco Boot:
> I tried the olsrd_dyn_gw with HNA.
> And ping check to localhost.
> This eliminates a need for dyn_gw_plain.
> (a bit quick and dirty ;-)
> But: It doesn't work.
> 
> Config:
> LoadPlugin "olsrd_dyn_gw.so.0.4"
> {
> PlParam  "Interval"   "1"
> PlParam "HNA"   "192.168.80.0 255.255.255.0"
> PlParam  "Ping"  "127.0.0.1"
> }
> 
> ---------- LOADING LIBRARY olsrd_dyn_gw.so.0.4 ----------
> OLSRD dynamic gateway plugin 0.4 by Various artists
> Checking plugin interface version:  5 - OK
> Trying to fetch plugin init function: OK
> Trying to fetch parameter table and it's size...
> Sending parameters...
> "Ping"/"127.0.0.1"... Ping: OK
> "HNA"/"192.168.80.0 255.255.255.0"...
> Fatal error in plugin parameter "HNA"/"192.168.80.0 255.255.255.0"
> HNA: FAILED
> "Interval"/"1"... Got int 1
> Interval: OK
> Running plugin_init function...
> HNA[0050a8c0/000000c0] is invalid
> HNA[00000000/00000000] is invalid
> ---------- LIBRARY olsrd_dyn_gw.so.0.4 FAILED ----------
> 
> I think I found the bug. The code for the netmask uses the netaddr field.
> Correct?
> 
>   //printf("%s():i:%i; net:%s; mask:%s\n",__func__,i,s_netaddr,s_mask);
>   if (inet_pton(olsr_cnf->ip_version, s_netaddr, &temp_net) <= 0) {
>     OLSR_PRINTF(0, "Illegal IP address \"%s\"", s_netaddr);
>     return 1;
>   }
>   //printf("GOT: %s(%08x)",inet_ntoa(foo_addr),foo_addr.s_addr);
>   if (inet_pton(olsr_cnf->ip_version, s_netaddr, &temp_netmask) <= 0) {
>                                       *********
>     OLSR_PRINTF(0, "Illegal netmask \"%s\"", s_netaddr);
>     return 1;
I have never used the dyn_gw/dyn_gw_plain code, so i'm not really helpful 
here. Anyone else has an idea if this is a bug (I think it is) and why the 
dyn_gw plugin is usable for some Freifunk usecases ?

Henning Rogge
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20100130/b7421095/attachment.sig>


More information about the Olsr-dev mailing list