mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 22:35:25 +00:00
[19430] dhclient now calls script with reason=FAIL even with -1 option
This commit is contained in:
5
RELNOTES
5
RELNOTES
@@ -54,6 +54,11 @@ by Eric Young (eay@cryptsoft.com).
|
|||||||
|
|
||||||
Changes since 4.3.0 (new features)
|
Changes since 4.3.0 (new features)
|
||||||
|
|
||||||
|
- Client now calls the script with reason set to FAIL when run with -1 (ony try)
|
||||||
|
and there are no sever responses. Thank you Andrew Pollock for providing
|
||||||
|
an initial patch.
|
||||||
|
[ISC-bugs #18183]
|
||||||
|
|
||||||
- Insert the raw data from a fully encapsualted option into the option cache.
|
- Insert the raw data from a fully encapsualted option into the option cache.
|
||||||
This allows "exists" to check for the option if any sub options exist. It
|
This allows "exists" to check for the option if any sub options exist. It
|
||||||
also adds the raw data to the environment variables supplied to the client
|
also adds the raw data to the environment variables supplied to the client
|
||||||
|
@@ -1471,6 +1471,11 @@ void bind_lease (client)
|
|||||||
if (!quiet)
|
if (!quiet)
|
||||||
log_info("Unable to obtain a lease on first "
|
log_info("Unable to obtain a lease on first "
|
||||||
"try (declined). Exiting.");
|
"try (declined). Exiting.");
|
||||||
|
|
||||||
|
/* Let's call a script and we're done */
|
||||||
|
script_init(client, "FAIL", (struct string_list *)0);
|
||||||
|
script_go(client);
|
||||||
|
|
||||||
finish(2);
|
finish(2);
|
||||||
} else {
|
} else {
|
||||||
state_init(client);
|
state_init(client);
|
||||||
@@ -2480,6 +2485,11 @@ void state_panic (cpp)
|
|||||||
if (!quiet)
|
if (!quiet)
|
||||||
log_info ("Unable to obtain a lease on first try.%s",
|
log_info ("Unable to obtain a lease on first try.%s",
|
||||||
" Exiting.");
|
" Exiting.");
|
||||||
|
|
||||||
|
/* Let's call a script and we're done */
|
||||||
|
script_init(client, "FAIL", (struct string_list *)0);
|
||||||
|
script_go(client);
|
||||||
|
|
||||||
finish(2);
|
finish(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user