--- dhcp_probe-1.1.0/src/daemonize.c	2001-01-27 23:25:08.000000000 +0100
+++ dhcp_probe-1.1.0-patched/src/daemonize.c	2005-10-27 12:14:32.000000000 +0200
@@ -63,7 +63,8 @@
 	   There is also no portable way to determine the maximum number of file descriptors; presently
 	   we'll rely on the non-portable OPEN_MAX constant.
 	*/
-	for (i = 0; i < OPEN_MAX; i++)
+//	for (i = 0; i < OPEN_MAX; i++)
+	for (i = 0; i < 256; i++)
 		close(i);
 
 	return;
--- dhcp_probe-1.1.0/src/dhcp_probe.c	2004-11-10 22:35:43.000000000 +0100
+++ dhcp_probe-1.1.0-patched/src/dhcp_probe.c	2005-10-27 12:13:52.000000000 +0200
@@ -771,7 +771,8 @@
 		return;
 	}	
 
-	udp_len = udp_header->uh_ulen;
+//	udp_len = udp_header->uh_ulen;
+	udp_len = udp_header->len;
 	if (udp_len < sizeof(struct udphdr)) {
 		report(LOG_WARNING, "interface %s, invalid UDP packet (UDP length %d, smaller than minimum value %d)", ifname, udp_len, sizeof(struct udphdr));
 		return;
