Commit 5918b493 authored by Thomas Markwalder's avatar Thomas Markwalder

[#10,!6] Addressed review comments

server/dhcp.c
    moved log message up

server/dhcpd.conf.5
    fixed missing paragraph marker
parent e6eccd10
......@@ -3704,9 +3704,6 @@ int do_ping_check(struct packet* packet, struct lease_state* state,
tv.tv_sec = cur_tv.tv_sec + timeout_secs;
tv.tv_usec = cur_tv.tv_usec + (timeout_ms * 1000);
add_timeout (&tv, lease_ping_timeout, lease, (tvref_t)lease_reference,
(tvunref_t)lease_dereference);
#ifdef DEBUG
log_debug ("Pinging:%s, state: %d, same client? %s, "
" orig_cltt %s, elasped: %ld, timeout in: %d.%d secs" ,
......@@ -3718,6 +3715,10 @@ int do_ping_check(struct packet* packet, struct lease_state* state,
timeout_secs, timeout_ms);
#endif
add_timeout (&tv, lease_ping_timeout, lease, (tvref_t)lease_reference,
(tvunref_t)lease_dereference);
return (1);
}
......
......@@ -3073,6 +3073,7 @@ heard, the lease is abandoned, and the server does not respond to the client.
If no value is set, ping-timeout defaults to 1 second. (See also ping-timeout-ms
below)
.RE
.PP
The
.I ping-timeout-ms
statement
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment