[Olsr-dev] Nameservice patch (add mid entries, seeking comments)
Hannes Gredler
(spam-protected)
Fri Dec 28 18:17:23 CET 2007
added to HEAD of CVS and mercurial. - tx, /hannes
> I developed a patch against the nameservice plugin to also include known
> MID entries in the hosts file. We're using this modification since
> v0.4.8 of OLSRd in our Freifunk Leipzig Firmware without any problems
> observed (so far) ;)
>
> I changed the write_hosts_file() function to lookup known MIDs for every
> IP/hostname pair that's about to be written to the hosts file. Every MID
> will be written as additional hostname "midX.hostname.domain" to the file.
>
> Here's an excerpt from my /etc/hosts generated by the patched
> nameservice plugin:
>
> - --- 8< ---
> 104.61.150.5 150-5.olsr # 104.61.150.5
> 104.61.239.208 mid1.150-5.olsr # 104.61.150.5 (mid #1)
> 104.61.150.205 mid2.150-5.olsr # 104.61.150.5 (mid #2)
> - --- >8 ---
>
More information about the Olsr-dev
mailing list