aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r--networking/udhcp/dhcpc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index 0310663e0..ab3e5a463 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -1519,7 +1519,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
1519 case RENEW_REQUESTED: /* manual (SIGUSR1) renew */ 1519 case RENEW_REQUESTED: /* manual (SIGUSR1) renew */
1520 case_RENEW_REQUESTED: 1520 case_RENEW_REQUESTED:
1521 case RENEWING: 1521 case RENEWING:
1522 if (timeout > 60) { 1522 if (timeout >= 60) {
1523 /* send an unicast renew request */ 1523 /* send an unicast renew request */
1524 /* Sometimes observed to fail (EADDRNOTAVAIL) to bind 1524 /* Sometimes observed to fail (EADDRNOTAVAIL) to bind
1525 * a new UDP socket for sending inside send_renew. 1525 * a new UDP socket for sending inside send_renew.
@@ -1592,11 +1592,9 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
1592 * For the second case, must make sure timeout 1592 * For the second case, must make sure timeout
1593 * is not too big, or else we can send 1593 * is not too big, or else we can send
1594 * futile renew requests for hours. 1594 * futile renew requests for hours.
1595 * (Ab)use -A TIMEOUT value (usually 20 sec)
1596 * as a cap on the timeout.
1597 */ 1595 */
1598 if (timeout > tryagain_timeout) 1596 if (timeout > 60)
1599 timeout = tryagain_timeout; 1597 timeout = 60;
1600 goto case_RENEW_REQUESTED; 1598 goto case_RENEW_REQUESTED;
1601 } 1599 }
1602 /* Start things over */ 1600 /* Start things over */