Kea: dhcp_messages.cc Source File

| Kea 3.2.0-git

dhcp_messages.cc
Go to the documentation of this file.
1// File created from src/lib/dhcp/dhcp_messages.mes
2
3#include <cstddef>
4#include <log/message_types.h>
5#include <log/message_initializer.h>
6
7namespace isc {
8namespace dhcp {
9
10extern const isc::log::MessageID DHCP_ADD_EXTERNAL_SOCKET_ALREADY_EXISTS = "DHCP_ADD_EXTERNAL_SOCKET_ALREADY_EXISTS";
11extern const isc::log::MessageID DHCP_ADD_EXTERNAL_SOCKET_BAD_THREAD = "DHCP_ADD_EXTERNAL_SOCKET_BAD_THREAD";
12extern const isc::log::MessageID DHCP_DELETE_ALL_EXTERNAL_SOCKETS_BAD_THREAD = "DHCP_DELETE_ALL_EXTERNAL_SOCKETS_BAD_THREAD";
13extern const isc::log::MessageID DHCP_DELETE_EXTERNAL_SOCKET_BAD_THREAD = "DHCP_DELETE_EXTERNAL_SOCKET_BAD_THREAD";
14extern const isc::log::MessageID DHCP_DELETE_EXTERNAL_SOCKET_NOT_FOUND = "DHCP_DELETE_EXTERNAL_SOCKET_NOT_FOUND";
15extern const isc::log::MessageID DHCP_IFACE_OPEN_SOCKET = "DHCP_IFACE_OPEN_SOCKET";
16extern const isc::log::MessageID DHCP_IFACE_SOCKET_ERROR = "DHCP_IFACE_SOCKET_ERROR";
17extern const isc::log::MessageID DHCP_RECEIVE4_UNKNOWN = "DHCP_RECEIVE4_UNKNOWN";
18extern const isc::log::MessageID DHCP_RECEIVE6_UNKNOWN = "DHCP_RECEIVE6_UNKNOWN";
19
20} // namespace dhcp
21} // namespace isc
22
23namespace {
24
25const char* values[] = {
26 "DHCP_ADD_EXTERNAL_SOCKET_ALREADY_EXISTS", "Adding an already existing external socket %1",
27 "DHCP_ADD_EXTERNAL_SOCKET_BAD_THREAD", "Attempted to register external socket %1 from different thread %2 than main thread %3",
28 "DHCP_DELETE_ALL_EXTERNAL_SOCKETS_BAD_THREAD", "Attempted to unregister external sockets from different thread %1 than main thread %2",
29 "DHCP_DELETE_EXTERNAL_SOCKET_BAD_THREAD", "Attempted to unregister external socket %1 from different thread %2 than main thread %3",
30 "DHCP_DELETE_EXTERNAL_SOCKET_NOT_FOUND", "Deleting a not found external socket %1",
31 "DHCP_IFACE_OPEN_SOCKET", "Opened socket on the interface %1 with address %2 and port %3",
32 "DHCP_IFACE_SOCKET_ERROR", "Got an error on the interface socket %1 of interface %2: %3",
33 "DHCP_RECEIVE4_UNKNOWN", "Received data over unknown socket",
34 "DHCP_RECEIVE6_UNKNOWN", "Received data over unknown socket",
35 NULL
36};
37
38const isc::log::MessageInitializer initializer(values);
39
40} // Anonymous namespace
41
isc::log::MessageInitializer
Initialize Message Dictionary.
Definition message_initializer.h:72
message_initializer.h
message_types.h
isc::dhcp
Definition dhcp4/client_handler.cc:20
isc::dhcp::DHCP_RECEIVE4_UNKNOWN
const isc::log::MessageID DHCP_RECEIVE4_UNKNOWN
Definition dhcp_messages.h:18
isc::dhcp::DHCP_RECEIVE6_UNKNOWN
const isc::log::MessageID DHCP_RECEIVE6_UNKNOWN
Definition dhcp_messages.h:19
isc::dhcp::DHCP_DELETE_EXTERNAL_SOCKET_NOT_FOUND
const isc::log::MessageID DHCP_DELETE_EXTERNAL_SOCKET_NOT_FOUND
Definition dhcp_messages.h:15
isc::dhcp::DHCP_ADD_EXTERNAL_SOCKET_ALREADY_EXISTS
const isc::log::MessageID DHCP_ADD_EXTERNAL_SOCKET_ALREADY_EXISTS
Definition dhcp_messages.h:11
isc::dhcp::DHCP_ADD_EXTERNAL_SOCKET_BAD_THREAD
const isc::log::MessageID DHCP_ADD_EXTERNAL_SOCKET_BAD_THREAD
Definition dhcp_messages.h:12
isc::dhcp::DHCP_IFACE_OPEN_SOCKET
const isc::log::MessageID DHCP_IFACE_OPEN_SOCKET
Definition dhcp_messages.h:16
isc::dhcp::DHCP_DELETE_EXTERNAL_SOCKET_BAD_THREAD
const isc::log::MessageID DHCP_DELETE_EXTERNAL_SOCKET_BAD_THREAD
Definition dhcp_messages.h:14
isc::dhcp::DHCP_DELETE_ALL_EXTERNAL_SOCKETS_BAD_THREAD
const isc::log::MessageID DHCP_DELETE_ALL_EXTERNAL_SOCKETS_BAD_THREAD
Definition dhcp_messages.h:13
isc::dhcp::DHCP_IFACE_SOCKET_ERROR
const isc::log::MessageID DHCP_IFACE_SOCKET_ERROR
Definition dhcp_messages.h:17
isc::log::MessageID
const char * MessageID
Definition message_types.h:15
isc
Defines the logger used by the top-level component of kea-lfc.
Definition check_exists_add.cc:18