[Dnsmasq-discuss] [BUG] dnsmasq "dynamic-hosts" ignores /16 IPv4 addresses on interfaces entirely
Mark Dietzer
dnsmasq at doridian.net
Sun Oct 9 05:06:10 UTC 2022
I have poked around and it seems, instead, the correct fix is "== 0" (not FFFFFFFF as I initially thought).
A patch I applied to my local dnsmasq that makes it work perfectly in my network is below.
Regards,
Mark "Doridian" Dietzer
diff --git a/src/network.c b/src/network.c
index 6166484..1bc063b 100644
--- a/src/network.c
+++ b/src/network.c
@@ -360,7 +360,7 @@ static int iface_allowed(struct iface_param *param, int if_index, char *label,
if (int_name->flags & INP4)
{
- if (netmask.s_addr == 0xffff)
+ if (netmask.s_addr == 0)
continue;
newaddr.s_addr = (addr->in.sin_addr.s_addr & netmask.s_addr) |
More information about the Dnsmasq-discuss
mailing list