dhcp: nettools: decrease initial delay

I think that artificially slowing down DHCP is not going to make users
happier, so let's decrease it to the minimum allowed value (1 ms).
Note that also dhclient and the internal client have it disabled. From
the dhclient.conf man page:

 *initial-delay* parameter sets the maximum time client can wait after
 start before commencing first transmission.  According to RFC2131
 Section 4.4.1, client should wait a random time between startup and
 the actual first trans‐ mission. Previous versions of ISC DHCP client
 used to wait random time up to 5 seconds, but that was unwanted due
 to impact on startup time. As such, new versions have the default
 initial delay set to 0. To restore old behavior, please set
 initial-delay to 5.
This commit is contained in:
Beniamino Galvani 2019-06-26 22:00:34 +02:00
parent 584298b7da
commit 7332c7343d

View file

@ -1235,10 +1235,10 @@ ip4_start (NMDhcpClient *client,
}
/*
* XXX
* FIXME:
* Select, or configure, a reasonable start delay, to protect poor servers beeing flooded.
*/
n_dhcp4_client_probe_config_set_start_delay (config, 500);
n_dhcp4_client_probe_config_set_start_delay (config, 1);
if (last_ip4_address) {
inet_pton (AF_INET, last_ip4_address, &last_addr);