diff options
author | Francis Dupont <fdupont@isc.org> | 2024-03-05 18:44:51 +0100 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2024-03-20 00:18:24 +0100 |
commit | baa1aa46e56a9eb64c8dbf7b8115bc74b0b9d9ca (patch) | |
tree | f8493dc49ea33769f038b0a3c652ee540f31ff2b /src/lib/dhcpsrv/tests | |
parent | [#3211] Checkpoint: rewrote InputBuffer (diff) | |
download | kea-baa1aa46e56a9eb64c8dbf7b8115bc74b0b9d9ca.tar.xz kea-baa1aa46e56a9eb64c8dbf7b8115bc74b0b9d9ca.zip |
[#3211] Almost done
Diffstat (limited to 'src/lib/dhcpsrv/tests')
-rw-r--r-- | src/lib/dhcpsrv/tests/dhcp4o6_ipc_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/dhcpsrv/tests/dhcp4o6_ipc_unittest.cc b/src/lib/dhcpsrv/tests/dhcp4o6_ipc_unittest.cc index 4a327cde13..69aae2bd14 100644 --- a/src/lib/dhcpsrv/tests/dhcp4o6_ipc_unittest.cc +++ b/src/lib/dhcpsrv/tests/dhcp4o6_ipc_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2015-2023 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2015-2024 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -227,7 +227,7 @@ Dhcp4o6IpcBaseTest::createDHCPv4MsgOption(TestIpc::EndpointType src) { // Make a wire representation of the DHCPv4 message. pkt->pack(); OutputBuffer& output_buffer = pkt->getBuffer(); - const uint8_t* data = static_cast<const uint8_t*>(output_buffer.getData()); + const uint8_t* data = output_buffer.getData(); OptionBuffer option_buffer(data, data + output_buffer.getLength()); // Create the DHCPv4 Message option holding the created message. @@ -338,7 +338,7 @@ Dhcp4o6IpcBaseTest::testReceiveError(const Pkt6Ptr& pkt) { buf.clear(); ASSERT_NO_THROW(pkt->pack()); - ASSERT_NE(-1, ::send(ipc_src.getSocketFd(), buf.getData(), + ASSERT_NE(-1, ::send(ipc_src.getSocketFd(), buf.getDataAsVP(), buf.getLength(), 0)); // Call receive with a timeout. The data should appear on the socket |