Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
dhcp
Commits
c788d4f8
Commit
c788d4f8
authored
May 18, 2017
by
Tomek Mrugalski
🛰
Browse files
[19430] dhclient now calls script with reason=FAIL even with -1 option
parent
9b7d458d
Changes
2
Hide whitespace changes
Inline
Side-by-side
RELNOTES
View file @
c788d4f8
...
...
@@ -54,6 +54,11 @@ by Eric Young (eay@cryptsoft.com).
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
.
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
...
...
client/dhclient.c
View file @
c788d4f8
...
...
@@ -1471,6 +1471,11 @@ void bind_lease (client)
if
(
!
quiet
)
log_info
(
"Unable to obtain a lease on first "
"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
);
}
else
{
state_init
(
client
);
...
...
@@ -2480,6 +2485,11 @@ void state_panic (cpp)
if
(
!
quiet
)
log_info
(
"Unable to obtain a lease on first try.%s"
,
" Exiting."
);
/* Let's call a script and we're done */
script_init
(
client
,
"FAIL"
,
(
struct
string_list
*
)
0
);
script_go
(
client
);
finish
(
2
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment