Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
4c56e134
Commit
4c56e134
authored
Mar 18, 2015
by
Marcin Siodelski
Browse files
[master] Merge branch 'trac3737'
parents
6fc6f278
ac1832cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp4/dhcp4_messages.mes
View file @
4c56e134
...
...
@@ -168,7 +168,7 @@ a lease. It is up to the client to choose one server out of other advertised
and continue allocation with that server. This is a normal behavior and
indicates successful operation.
% DHCP4_LEASE_ADVERT_FAIL failed to advertise a lease for
client
client-id %1, hwaddr %2, client sent
y
iaddr %3
% DHCP4_LEASE_ADVERT_FAIL failed to advertise a lease for client-id %1, hwaddr %2, client sent
c
iaddr %3
, requested-ip-address %4
This message indicates that the server has failed to offer a lease to
the specified client after receiving a DISCOVER message from it. There are
many possible reasons for such a failure.
...
...
@@ -178,7 +178,7 @@ This debug message indicates that the server successfully granted a lease
in response to client's REQUEST message. This is a normal behavior and
indicates successful operation.
% DHCP4_LEASE_ALLOC_FAIL failed to grant a lease for client-id %1, hwaddr %2, client sent
y
iaddr %3
% DHCP4_LEASE_ALLOC_FAIL failed to grant a lease for client-id %1, hwaddr %2, client sent
c
iaddr %3
, requested-ip-address %4
This message indicates that the server failed to grant a lease to the
specified client after receiving a REQUEST message from it. There are many
possible reasons for such a failure. Additional messages will indicate the
...
...
src/bin/dhcp4/dhcp4_srv.cc
View file @
4c56e134
...
...
@@ -1092,7 +1092,7 @@ Dhcpv4Srv::assignLease(Dhcpv4Exchange& ex) {
if
(
opt_requested_address
)
{
hint
=
opt_requested_address
->
readAddress
();
}
else
if
(
query
->
getCiaddr
()
!=
IOAddress
::
IPV4_ZERO_ADDRESS
())
{
}
else
if
(
!
query
->
getCiaddr
()
.
isV4Zero
())
{
hint
=
query
->
getCiaddr
();
}
...
...
@@ -1292,7 +1292,9 @@ Dhcpv4Srv::assignLease(Dhcpv4Exchange& ex) {
DHCP4_LEASE_ADVERT_FAIL:
DHCP4_LEASE_ALLOC_FAIL
)
.
arg
(
client_id
?
client_id
->
toText
()
:
"(no client-id)"
)
.
arg
(
hwaddr
?
hwaddr
->
toText
()
:
"(no hwaddr info)"
)
.
arg
(
hint
.
toText
());
.
arg
(
query
->
getCiaddr
().
toText
())
.
arg
(
opt_requested_address
?
opt_requested_address
->
readAddress
().
toText
()
:
"(no address)"
);
resp
->
setType
(
DHCPNAK
);
resp
->
setYiaddr
(
IOAddress
::
IPV4_ZERO_ADDRESS
());
...
...
Write
Preview
Markdown
is supported
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