summaryrefslogtreecommitdiff
path: root/networking/udhcp/d6_dhcpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/d6_dhcpc.c')
-rw-r--r--networking/udhcp/d6_dhcpc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c
index 1a58f5f..7f288f8 100644
--- a/networking/udhcp/d6_dhcpc.c
+++ b/networking/udhcp/d6_dhcpc.c
@@ -1517,6 +1517,9 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv)
if (client_data.state <= REQUESTING)
/* Initial negotiations in progress, do not disturb */
break;
+ if (client_data.state == REBINDING)
+ /* Do not go back from rebind to renew state */
+ break;
if (lease_remaining > 30) /* if renew fails, do not go back to BOUND */
lease_remaining = 30;
@@ -1524,22 +1527,21 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv)
packet_num = 0;
switch (client_data.state) {
- /* Try to renew/rebind */
case BOUND:
case RENEWING:
- case REBINDING:
+ /* Try to renew/rebind */
change_listen_mode(LISTEN_KERNEL);
client_data.state = RENEW_REQUESTED;
goto got_SIGUSR1;
- /* Two SIGUSR1 received, start things over */
case RENEW_REQUESTED:
+ /* Two SIGUSR1 received, start things over */
change_listen_mode(LISTEN_NONE);
d6_run_script_no_option("deconfig");
- /* Wake from SIGUSR2-induced deconfigured state */
default:
/* case RELEASED: */
+ /* Wake from SIGUSR2-induced deconfigured state */
change_listen_mode(LISTEN_NONE);
}
client_data.state = INIT_SELECTING;