Em 08/03/2010 13:42, Simon Kelley escreveu:
would it be enough to simply remove these lines:
/* avoid loops when client brain-dead */
lease_prune(lease, now);
lease = NULL;
Yes, that's all that's needed.
built and running .... let's wait to see what'll happen when this
notebook came from another network and tries to release a wrong address
on our network.
and thank you very much for your attention :)
building OpenWRT log. 101-ipv6 patch is OpenWRT provided,
102-wrong-address is mine patch.
make[3]: Entering directory `/home/solutti/openwrt4/trunk/package/dnsmasq'
gzip -dc /home/solutti/openwrt4/trunk/dl/dnsmasq-2.52.tar.gz | /bin/gtar
-C
/home/solutti/openwrt4/trunk/build_dir/target-mips_uClibc-0.9.30.2/dnsmasq-2.52/..
-xf -
Applying ./patches/101-ipv6.patch using plaintext:
patching file src/config.h
Applying ./patches/102-wrong-address-fix.patch using plaintext:
patching file src/rfc2131.c
[solutti@f8 trunk]$ cat package/dnsmasq/patches/102-wrong-address-fix.patch
diff -Naur dnsmasq-2.52-orig/src/rfc2131.c dnsmasq-2.52/src/rfc2131.c
--- dnsmasq-2.52-orig/src/rfc2131.c 2010-01-15 08:23:41.000000000 -0200
+++ dnsmasq-2.52/src/rfc2131.c 2010-03-08 13:46:49.000000000 -0300
@@ -1065,9 +1065,6 @@
if (lease && lease->addr.s_addr != mess->yiaddr.s_addr)
{
message = _("wrong address");
- /* avoid loops when client brain-dead */
- lease_prune(lease, now);
- lease = NULL;
}
}
}
[solutti@f8 trunk]$
--
Atenciosamente / Sincerily,
Leonardo Rodrigues
Solutti Tecnologia
http://www.solutti.com.br
Minha armadilha de SPAM, NÃO mandem email
gertru...@solutti.com.br
My SPAMTRAP, do not email it