dhcp-3.0.1rc12 ping timeout patch

Nick Garfield Nicholas.Garfield at cern.ch
Thu Oct 16 09:45:33 UTC 2003


Some more information that might help.

ip-srv-4.cern.ch/ROOT[66] uname -a
Linux ip-srv-4.cern.ch 2.4.20-20.7smp #1 SMP Mon Aug 18 14:46:14 EDT
2003 i686 unknown

ip-srv-4.cern.ch/ROOT[67] gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-112.7.2)





> -----Original Message-----
> From: Stephens, Bill {PBSG} [mailto:Bill.Stephens at pbsg.com]=20
> Sent: Wednesday, October 15, 2003 7:58 PM
> To: 'dhcp-hackers at isc.org'
> Subject: dhcp-3.0.1rc12 ping timeout patch
>=20
>=20
> 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=20
> Glenn Satchell
> recommended).
>=20
> -Bill Stephens
>=20
> --- 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 =3D 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,=20
> lease_ping_timeout,
> lease,
>  			     (tvref_t)lease_reference,
>  			     (tvunref_t)lease_dereference);
>  		++outstanding_pings;
>  	} else {
>=20
>=20


More information about the dhcp-hackers mailing list