Hi.
udhcp keeps sending out same IPs to diff. macs w/o this patch when a
bunch boot at the same time. Annoying.
----------snip-----
svn diff networking/udhcp/leases.c
Index: networking/udhcp/leases.c
===================================================================
--- networking/udhcp/leases.c (revision 19415)
+++ networking/udhcp/leases.c (working copy)
@@ -33,7 +33,7 @@
for (j = 0; j < 16 && !chaddr[j]; j++);
for (i = 0; i < server_config.max_leases; i++)
- if ((j != 16 && memcmp(leases[i].chaddr, chaddr, 16) != 0)
+ if ((j != 16 && memcmp(leases[i].chaddr, chaddr, 16) == 0)
|| (yiaddr && leases[i].yiaddr == yiaddr)
) {
memset(&(leases[i]), 0, sizeof(struct
dhcpOfferedAddr));
-----------------snip--------
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox