mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 06:15:55 +00:00
- There is now a default 1/4 of a second scheduled delay between delayed
fsync()'s, it can be configured by the max-ack-delay configuration parameter. [ISC-Bugs #17679]
This commit is contained in:
@@ -624,6 +624,7 @@ struct lease_state {
|
||||
#define SV_LIMIT_ADDRS_PER_IA 56
|
||||
#define SV_LIMIT_PREFS_PER_IA 57
|
||||
#define SV_DELAYED_ACK 58
|
||||
#define SV_MAX_ACK_DELAY 59
|
||||
|
||||
#if !defined (DEFAULT_PING_TIMEOUT)
|
||||
# define DEFAULT_PING_TIMEOUT 1
|
||||
@@ -633,6 +634,14 @@ struct lease_state {
|
||||
# define DEFAULT_DELAYED_ACK 28 /* default SO_SNDBUF size / 576 bytes */
|
||||
#endif
|
||||
|
||||
#if !defined (DEFAULT_ACK_DELAY_SECS)
|
||||
# define DEFAULT_ACK_DELAY_SECS 0
|
||||
#endif
|
||||
|
||||
#if !defined (DEFAULT_ACK_DELAY_USECS)
|
||||
# define DEFAULT_ACK_DELAY_USECS 250000 /* 1/4 of a second */
|
||||
#endif
|
||||
|
||||
#if !defined (DEFAULT_DEFAULT_LEASE_TIME)
|
||||
# define DEFAULT_DEFAULT_LEASE_TIME 43200
|
||||
#endif
|
||||
@@ -1939,6 +1948,8 @@ int data_string_sprintfa(struct data_string *ds, const char *fmt, ...);
|
||||
/* dhcp.c */
|
||||
extern int outstanding_pings;
|
||||
extern int max_outstanding_acks;
|
||||
extern int max_ack_delay_secs;
|
||||
extern int max_ack_delay_usecs;
|
||||
|
||||
void dhcp PROTO ((struct packet *));
|
||||
void dhcpdiscover PROTO ((struct packet *, int));
|
||||
|
Reference in New Issue
Block a user