summaryrefslogtreecommitdiff
path: root/server/stables.c
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2019-05-01 15:55:11 -0400
committerThomas Markwalder <tmark@isc.org>2019-05-01 15:55:11 -0400
commite6eccd10a84909b14ec93ba06195512273a4a96e (patch)
tree9e92d222a194aefa74546dce4281e57c0d49ba50 /server/stables.c
parent787b8c03684e82c4738fdb1c3a73349e7a412e76 (diff)
downloadisc-dhcp-e6eccd10a84909b14ec93ba06195512273a4a96e.tar.gz
[#10,!6] Added ping-timeout-ms parameter
You can now use ping-timeout-ms to specify the ping timeout value in milliseconds. includes/dhcpd.h new defines: SV_PING_TIMEOUT_MS and DEFAULT_PING_TIMEOUT_MS server/dhcp.c do_ping_check() - modified to calculate ping time from ping-timeout-ms when its > 0, otherwise use ping-timeout Added timeout value to debug log message server/dhcpd.conf.5 Added discussion of ping-timeout-ms server/stables.c Added entry for ping-timeout-ms
Diffstat (limited to 'server/stables.c')
-rw-r--r--server/stables.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/stables.c b/server/stables.c
index 75847270..1a08201e 100644
--- a/server/stables.c
+++ b/server/stables.c
@@ -292,6 +292,7 @@ static struct option server_options[] = {
{ "local-address6", "6", &server_universe, SV_LOCAL_ADDRESS6, 1 },
{ "bind-local-address6", "f", &server_universe, SV_BIND_LOCAL_ADDRESS6, 1 },
{ "ping-cltt-secs", "T", &server_universe, SV_PING_CLTT_SECS, 1 },
+ { "ping-timeout-ms", "T", &server_universe, SV_PING_TIMEOUT_MS, 1 },
{ NULL, NULL, NULL, 0, 0 }
};