diff options
| author | Ron Yorston <rmy@pobox.com> | 2018-10-08 08:31:11 +0100 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2018-10-08 08:31:11 +0100 |
| commit | eee3722fd32c8c0929cfbacdbe0b6524e1fd645c (patch) | |
| tree | c9026160e56f204c42029c705d1d16cecd515244 /networking/udhcp/dhcpc.c | |
| parent | 25a1bcec7637e0f0c75d3ae6c09eb78fdb6f0a75 (diff) | |
| parent | 349d72c19ced4fae64e8fdd5792b37e78ac2f616 (diff) | |
| download | busybox-w32-eee3722fd32c8c0929cfbacdbe0b6524e1fd645c.tar.gz busybox-w32-eee3722fd32c8c0929cfbacdbe0b6524e1fd645c.tar.bz2 busybox-w32-eee3722fd32c8c0929cfbacdbe0b6524e1fd645c.zip | |
Merge branch 'busybox' into merge
Diffstat (limited to 'networking/udhcp/dhcpc.c')
| -rw-r--r-- | networking/udhcp/dhcpc.c | 8 |
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 */ |
