@@ -94,7 +94,7 @@
/* Define the timeout for waiting for a DHCP/BOOTP/RARP reply */
#define CONF_OPEN_RETRIES 2 /* (Re)open devices twice */
#define CONF_SEND_RETRIES 6 /* Send six requests per open */
-#define CONF_INTER_TIMEOUT (HZ) /* Inter-device timeout: 1 second */
+#define CONF_INTER_TIMEOUT (HZ*2) /* Inter-device timeout: 2 seconds */
#define CONF_BASE_TIMEOUT (HZ*2) /* Initial timeout: 2 seconds */
#define CONF_TIMEOUT_RANDOM (HZ) /* Maximum amount of randomization */
#define CONF_TIMEOUT_MULT *7/4 /* Rate of timeout growth */
If multiple networking devices are enabled, the current implementation of the DHCP client is to request a DHCP address on one device, listen for responses on that device for one second, and if no response is received in that time, repeat on the next device. This means if a DHCP server takes over a second to reply, the client will not be able to process the reply. This commit increases the inter-device timeout to 2 seconds, to give the DHCP server more time to reply. Signed-off-by: Patryk Mungai <patryk.mungai-ndungu.kx@renesas.com> --- net/ipv4/ipconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)