Skip to content
GitLab
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
Kea
Commits
98a7ffb5
Commit
98a7ffb5
authored
Oct 29, 2014
by
Tomek Mrugalski
🛰
Browse files
[master] Unit-test fix after #3555 merge.
parent
ab76a9e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp6/tests/dhcp6_client.cc
View file @
98a7ffb5
...
...
@@ -61,6 +61,10 @@ Dhcp6Client::applyRcvdConfiguration(const Pkt6Ptr& reply) {
// Get all options in the reply message and pick IA_NA, IA_PD and
// Status code.
Opts
opts
=
reply
->
options_
;
// Let's try to get a MAC
HWAddrPtr
hwaddr
=
reply
->
getMAC
(
Pkt
::
HWADDR_SOURCE_ANY
);
// Set the global status code to default: success and not received.
config_
.
resetGlobalStatusCode
();
for
(
Opts
::
const_iterator
opt
=
opts
.
begin
();
opt
!=
opts
.
end
();
++
opt
)
{
...
...
@@ -88,12 +92,14 @@ Dhcp6Client::applyRcvdConfiguration(const Pkt6Ptr& reply) {
lease_info
.
lease_
.
iaid_
=
ia
->
getIAID
();
break
;
}
lease_info
.
lease_
=
Lease6
(
Lease
::
TYPE_NA
,
iaaddr
->
getAddress
(),
duid_
,
ia
->
getIAID
(),
iaaddr
->
getPreferred
(),
iaaddr
->
getValid
(),
ia
->
getT1
(),
ia
->
getT2
(),
0
);
ia
->
getT1
(),
ia
->
getT2
(),
0
,
hwaddr
);
lease_info
.
lease_
.
cltt_
=
time
(
NULL
);
}
break
;
...
...
@@ -117,7 +123,7 @@ Dhcp6Client::applyRcvdConfiguration(const Pkt6Ptr& reply) {
iaprefix
->
getPreferred
(),
iaprefix
->
getValid
(),
ia
->
getT1
(),
ia
->
getT2
(),
0
,
HWAddrPtr
()
,
hwaddr
,
iaprefix
->
getLength
());
lease_info
.
lease_
.
cltt_
=
time
(
NULL
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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