dhcp-3.0.1rc12 ping timeout patch

Stephens, Bill {PBSG} Bill.Stephens at pbsg.com
Wed Oct 15 17:58:09 UTC 2003


Here's a patch to dhcp-3.0.1rc12 to stop logging the ping timeout
information unless we're debugging.  It should also now compile under
solaris, since it's now typedef'd as %ld instead of %d ( as Glenn Satchell
recommended).

-Bill Stephens

--- dhcp-3.0.1rc12/server/dhcp.c	Mon Jul  7 03:49:16 2003
+++ dhcp-3.0.1rc12/server/dhcp.c.new	Wed Oct 15 12:38:45 2003
@@ -2641,13 +2641,13 @@
 				data_string_forget (&d1, MDL);
 			}
 		} else {
 			ping_timeout = DEFAULT_PING_TIMEOUT;
 		}
-
-		log_debug ("Ping timeout: %d", ping_timeout);
-
+#ifdef DEBUG
+		log_debug ("Ping timeout: %ld", ping_timeout);
+#endif
 		add_timeout (cur_time + ping_timeout, lease_ping_timeout,
lease,
 			     (tvref_t)lease_reference,
 			     (tvunref_t)lease_dereference);
 		++outstanding_pings;
 	} else {


More information about the dhcp-hackers mailing list