[Olsr-dev] Nameservice IP-Forwarders, Bug?

Sven-Ola Tuecke (spam-protected)
Fri Jan 30 10:11:21 CET 2009


Hey,

looks like a mixup between the keyword-IP and the current main IP. Those may 
differ, because the main IP is may change during startup when more than one 
interface is configured. The "keyword-IP" in the nameservice plparam's is 
special, because all other plparams have a _static_ keyword -> may need a fix 
in set_nameservice_host()

// Sven-Ola

Am Donnerstag 29 Januar 2009 20:35:56 schrieb Manuel Munz:
> Hi,
>
> i'm having a problem with the nameservice plugin and hope someone can
> help or at least confirm this bug or not.
>
> I'm trying to set up "ip-forwarders" (announce names for other hosts,
> e.g. hna-hosts) with the nameservice plugin. It almost works. On
> x86-hosts the names get inserted correctly, but on mips (i tested on
> Broadcom with Kamikaze and Freifunk Firmware, Atheros with Kamikaze and
> qemu with debian-mipsel) the plugin inserts wrong ips for the names,
> namely the ip of the host doing the announcement. Please see configs and
> the contents of the hosts files below. These are from a virtual test
> setup, running two kamikaze-x86 and one debian-mipsel, all with
> olsrd-0.5.6-r3.
>
> == Node-1 ==
> = Kamikaze x86, 2.6.25.17, 10.11.12.1, HNA: 192.168.0.201 =
>
> 	LoadPlugin "olsrd_nameservice.so.0.3"
> 	{
> 	PlParam "name" "Node-1"
> 	PlParam "192.168.0.201" "hna-node-1"
> 	PlParam "suffix" ".ffa"
> 	PlParam "hosts-file" "/var/etc/hosts.olsr"
> 	}
>
> 	10.11.12.1	Node-1.ffa	# myself
> 	192.168.0.201	hna-node-1.ffa	# myself
> 	192.168.0.202	hna-node-2.ffa	# 192.168.0.202
> 	10.11.12.2	Node-2.ffa	# 10.11.12.2
> 	192.168.0.203	hna-node-3.ffa	# 192.168.0.203
> 	10.11.12.3	Node-3.ffa	# 10.11.12.3
>
>
> == Node-2 ==
> = Kamikaze x86, 2.6.25.17, 10.11.12.2, HNA: 192.168.0.202 =
>
> 	LoadPlugin "olsrd_nameservice.so.0.3"
> 	{
> 	PlParam "name" "Node-2"
> 	PlParam "192.168.0.202" "hna-node-2"
> 	PlParam "hosts-file" "/var/etc/hosts.olsr"
> 	PlParam "suffix" ".ffa"
> 	}
>
> 	10.11.12.2	Node-2.ffa	# myself
> 	192.168.0.202	hna-node-2.ffa	# myself
> 	192.168.0.201	hna-node-1.ffa	# 192.168.0.201
> 	10.11.12.1	Node-1.ffa	# 10.11.12.1
> 	192.168.0.203	hna-node-3.ffa	# 192.168.0.203
> 	10.11.12.3	Node-3.ffa	# 10.11.12.3
>
> == Node-3 ==
> = Debian-Mipsel, 2.6.18-6-qemu, 10.11.12.3, HNA: 192.168.0.203 =
>
> 	LoadPlugin "olsrd_nameservice.so.0.3"
> 	{
> 	PlParam "name" "Node-3"
> 	PlParam "192.168.0.203" "hna-node-3"
> 	PlParam "suffix" ".ffa"
> 	PlParam "hosts-file" "/etc/hosts.olsr"
> 	}
>
> 	10.11.12.3	Node-3.ffa	# myself
> 	192.168.0.203	hna-node-3.ffa	# myself
> 	10.11.12.1	hna-node-1.ffa	# 10.11.12.1
> 	10.11.12.1	Node-1.ffa	# 10.11.12.1
> 	10.11.12.2	hna-node-2.ffa	# 10.11.12.2
> 	10.11.12.2	Node-2.ffa	# 10.11.12.2
>
>
>
> If someone is willing to have a look at this, i can upload the 3
> qemu-vms or give ssh access to these nodes.
>
> regards,
> soma






More information about the Olsr-dev mailing list