2013-07-17-0709Z


spent all day trying to get dnsmasq serving DHCP over OLSR in a sane manner. the way the script parsed the ff_wldhcp nvram variable was silly, IMO, and the tooltip was misleading, indicating that the netmask should match the prefix (the number following the slash), which is incorrect and doesn't even match the example they give which has /28 and a netmask of 255.255.255.0.

so I did a pretty major overhaul of that part of the startup script here and determined that the netmask specified is simply passed on to the DHCP clients as their netmask, it has nothing and should have nothing to do with the address calculation. also, the arbitrary assignment of the start address to 2 plus the network address is silly. I modified it so that the first address you give is the start of the DHCP assignments.

for example, my setting is:

root@zephyr:~# nvram get ff_wldhcp
10.0.3.2/24,255.0.0.0

and my iPod was assigned an IP address of 10.0.3.113 (don't know from what orifice the DHCP server pulled that last octet), netmask of 255.0.0.0 as specified, and router at 10.0.0.3, the mesh router's own IP.

now to work on the two routers with 2MB flash and figure out how to get the DHCP forwarders working; there is just no room to put anything else.

Back to blog or home page

last updated 2013-07-17 03:20:29. served from tektonic.jcomeau.com