[Olsr-dev] mDns plugin improvement

ZioPRoTo (Saverio Proto) (spam-protected)
Wed May 30 20:00:51 CEST 2012


Hello Teco,

> mDNS packets SHOULD have TTL 255

This is true for the application that generates the packet. But once
the packet is out in the network routers can alter the TTL value.

> Why not the more standard method using a hash table, like bmf? Costs more
> CPU / memory, but it is much safer. p2pd has / had this. We didn't push
> this version I think, because there was an issue with latest modifications.
> nyway, we should get rid of 2 out of 3 plugins.

please note that this patch is NOT for checking if a "OLSR message" is
for forwarding. This patch is to check if the IP packet should be
captured from the users' LAN and passed for encapsulation to mDNS
plugin.

this way we do not capture a packet that another OLSR router pushed to
a ethernet LAN, we only capture packets generated from user
applications that have TTL 255

we believe that using hash table is just waste of CPU when you can
check if the packet is good for forwarding just checking the TTL
field.

Saverio




More information about the Olsr-dev mailing list