summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/tests/dhcp4o6_ipc_unittest.cc
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2024-03-06 16:16:25 +0100
committerFrancis Dupont <fdupont@isc.org>2024-03-20 00:18:24 +0100
commit94b07b4ca520bae3e4d72061a7fd4b62ec4cd543 (patch)
tree24c1acb8d7b0f0bb2bc057bc56802336ea1c16d6 /src/lib/dhcpsrv/tests/dhcp4o6_ipc_unittest.cc
parent[#3211] Almost done (diff)
downloadkea-94b07b4ca520bae3e4d72061a7fd4b62ec4cd543.tar.xz
kea-94b07b4ca520bae3e4d72061a7fd4b62ec4cd543.zip
[#3211] More new getVector use cases
Diffstat (limited to 'src/lib/dhcpsrv/tests/dhcp4o6_ipc_unittest.cc')
-rw-r--r--src/lib/dhcpsrv/tests/dhcp4o6_ipc_unittest.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/dhcpsrv/tests/dhcp4o6_ipc_unittest.cc b/src/lib/dhcpsrv/tests/dhcp4o6_ipc_unittest.cc
index 69aae2bd14..e0f8973ad6 100644
--- a/src/lib/dhcpsrv/tests/dhcp4o6_ipc_unittest.cc
+++ b/src/lib/dhcpsrv/tests/dhcp4o6_ipc_unittest.cc
@@ -226,9 +226,7 @@ Dhcp4o6IpcBaseTest::createDHCPv4MsgOption(TestIpc::EndpointType src) {
1234));
// Make a wire representation of the DHCPv4 message.
pkt->pack();
- OutputBuffer& output_buffer = pkt->getBuffer();
- const uint8_t* data = output_buffer.getData();
- OptionBuffer option_buffer(data, data + output_buffer.getLength());
+ const OptionBuffer& option_buffer = pkt->getBuffer().getVector();
// Create the DHCPv4 Message option holding the created message.
OptionPtr opt_msg(new Option(Option::V6, D6O_DHCPV4_MSG, option_buffer));