mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-01 14:55:30 +00:00
Try to renew active lease in REBOOT state even if it's expired.
This commit is contained in:
@@ -56,7 +56,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: dhclient.c,v 1.37 1997/06/02 22:36:25 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: dhclient.c,v 1.38 1997/06/02 22:45:08 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -275,7 +275,6 @@ void state_reboot (ipp)
|
|||||||
|
|
||||||
/* If we don't remember an active lease, go straight to INIT. */
|
/* If we don't remember an active lease, go straight to INIT. */
|
||||||
if (!ip -> client -> active ||
|
if (!ip -> client -> active ||
|
||||||
ip -> client -> active -> rebind < cur_time ||
|
|
||||||
ip -> client -> active -> is_bootp) {
|
ip -> client -> active -> is_bootp) {
|
||||||
state_init (ip);
|
state_init (ip);
|
||||||
return;
|
return;
|
||||||
@@ -1086,6 +1085,7 @@ void state_panic (ipp)
|
|||||||
ip -> client -> state = S_INIT;
|
ip -> client -> state = S_INIT;
|
||||||
add_timeout (cur_time + ip -> client -> config -> retry_interval,
|
add_timeout (cur_time + ip -> client -> config -> retry_interval,
|
||||||
state_init, ip);
|
state_init, ip);
|
||||||
|
go_daemon ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void send_request (ipp)
|
void send_request (ipp)
|
||||||
|
Reference in New Issue
Block a user