diff options
author | Thomas Markwalder <tmark@isc.org> | 2019-05-01 15:55:11 -0400 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2019-05-01 15:55:11 -0400 |
commit | e6eccd10a84909b14ec93ba06195512273a4a96e (patch) | |
tree | 9e92d222a194aefa74546dce4281e57c0d49ba50 /includes | |
parent | 787b8c03684e82c4738fdb1c3a73349e7a412e76 (diff) | |
download | isc-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 'includes')
-rw-r--r-- | includes/dhcpd.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/dhcpd.h b/includes/dhcpd.h index 92f77f22..2907fcfa 100644 --- a/includes/dhcpd.h +++ b/includes/dhcpd.h @@ -816,16 +816,20 @@ struct lease_state { #define SV_LOCAL_ADDRESS6 97 #define SV_BIND_LOCAL_ADDRESS6 98 #define SV_PING_CLTT_SECS 99 +#define SV_PING_TIMEOUT_MS 100 #if !defined (DEFAULT_PING_TIMEOUT) # define DEFAULT_PING_TIMEOUT 1 #endif +#if !defined (DEFAULT_PING_TIMEOUT_MS) +# define DEFAULT_PING_TIMEOUT_MS 0 +#endif + #if !defined (DEFAULT_PING_CLTT_SECS) # define DEFAULT_PING_CLTT_SECS 60 /* in seconds */ #endif - #if !defined (DEFAULT_DELAYED_ACK) # define DEFAULT_DELAYED_ACK 0 /* default 0 disables delayed acking */ #endif |