--- /dev/null
+/dhcp_messages.cc -diff merge=ours
+/dhcp_messages.h -diff merge=ours
--- /dev/null
+// Copyright (C) 2025 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
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <config.h>
+
+#include "dhcp/dhcp_log.h"
+
+namespace isc {
+namespace dhcp {
+
+isc::log::Logger dhcp_logger("dhcp");
+
+} // namespace dhcp
+} // namespace isc
+
--- /dev/null
+// Copyright (C) 2025 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
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#ifndef DHCP_LOG_H
+#define DHCP_LOG_H
+
+#include <dhcp/dhcp_messages.h>
+#include <log/macros.h>
+
+namespace isc {
+namespace dhcp {
+
+/// \brief DHCP library Logger
+///
+/// Define the logger used to log messages. We could define it in multiple
+/// modules, but defining in a single module and linking to it saves time and
+/// space.
+extern isc::log::Logger dhcp_logger;
+
+} // namespace dhcp
+} // namespace isc
+
+#endif // DHCP_LOG_H
--- /dev/null
+// File created from src/lib/dhcp/dhcp_messages.mes
+
+#include <cstddef>
+#include <log/message_types.h>
+#include <log/message_initializer.h>
+
+namespace isc {
+namespace dhcp {
+
+
+} // namespace dhcp
+} // namespace isc
+
+namespace {
+
+const char* values[] = {
+ NULL
+};
+
+const isc::log::MessageInitializer initializer(values);
+
+} // Anonymous namespace
+
--- /dev/null
+// File created from src/lib/dhcp/dhcp_messages.mes
+
+#ifndef DHCP_MESSAGES_H
+#define DHCP_MESSAGES_H
+
+#include <log/message_types.h>
+
+namespace isc {
+namespace dhcp {
+
+
+} // namespace dhcp
+} // namespace isc
+
+#endif // DHCP_MESSAGES_H
--- /dev/null
+# Copyright (C) 2025 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
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+$NAMESPACE isc::dhcp
+
kea_dhcp_lib = shared_library(
'kea-dhcp',
'classify.cc',
+ 'dhcp_log.cc',
+ 'dhcp_messages.cc',
'duid.cc',
'duid_factory.cc',
'hwaddr.cc',
'classify.h',
'dhcp4.h',
'dhcp6.h',
+ 'dhcp_log.h',
+ 'dhcp_messages.h',
'docsis3_option_defs.h',
'duid.h',
'duid_factory.h',
'std_option_defs.h',
]
install_headers(kea_dhcp_headers, preserve_path: true, subdir: 'kea/dhcp')
+
+if KEA_MSG_COMPILER.found()
+ current_source_dir = meson.current_source_dir()
+ target_gen_messages = run_target(
+ 'src-lib-dhcp-dhcp_messages',
+ command: [
+ CD_AND_RUN,
+ TOP_SOURCE_DIR,
+ KEA_MSG_COMPILER,
+ 'src/lib/dhcp/dhcp_messages.mes',
+ ],
+ )
+ TARGETS_GEN_MESSAGES += [target_gen_messages]
+endif