diff options
author | Marcin Siodelski <marcin@isc.org> | 2015-06-02 17:37:24 +0200 |
---|---|---|
committer | Marcin Siodelski <marcin@isc.org> | 2015-06-02 17:37:24 +0200 |
commit | 329c1c9ae1d2b8ed251fc2578e754c0f9ac13571 (patch) | |
tree | dd8b67d48bad385748ca2d27d2c4b62a753bb2a9 /src/bin/dhcp6/tests/dhcp6_test_utils.cc | |
parent | [3807] Pkt6::getType now returns all message types, including client side. (diff) | |
download | kea-329c1c9ae1d2b8ed251fc2578e754c0f9ac13571.tar.xz kea-329c1c9ae1d2b8ed251fc2578e754c0f9ac13571.zip |
[3807] Improved log messages for the DHCPv6 server.
Also added a few minor corrections to the DHCPv4 server and implemented
new Option6StatusCode.
Diffstat (limited to 'src/bin/dhcp6/tests/dhcp6_test_utils.cc')
-rw-r--r-- | src/bin/dhcp6/tests/dhcp6_test_utils.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bin/dhcp6/tests/dhcp6_test_utils.cc b/src/bin/dhcp6/tests/dhcp6_test_utils.cc index 83a466a105..1339efad95 100644 --- a/src/bin/dhcp6/tests/dhcp6_test_utils.cc +++ b/src/bin/dhcp6/tests/dhcp6_test_utils.cc @@ -14,6 +14,7 @@ #include <config.h> #include <gtest/gtest.h> +#include <dhcp/option6_status_code.h> #include <dhcp6/tests/dhcp6_test_utils.h> #include <dhcp6/json_config_parser.h> #include <config/ccsession.h> @@ -829,8 +830,8 @@ NakedDhcpv6SrvTest::checkIA_NAStatusCode( EXPECT_EQ(expected_t1, ia->getT1()); EXPECT_EQ(expected_t2, ia->getT2()); - isc::dhcp::OptionCustomPtr status = - boost::dynamic_pointer_cast<isc::dhcp::OptionCustom> + isc::dhcp::Option6StatusCodePtr status = + boost::dynamic_pointer_cast<isc::dhcp::Option6StatusCode> (ia->getOption(D6O_STATUS_CODE)); // It is ok to not include status success as this is the default @@ -847,7 +848,7 @@ NakedDhcpv6SrvTest::checkIA_NAStatusCode( // status code option content is just a text explanation // what went wrong. EXPECT_EQ(static_cast<uint16_t>(expected_status_code), - status->readInteger<uint16_t>(0)); + status->getStatusCode()); } } |