Kea 2.7.5
fuzz_messages.cc
Go to the documentation of this file.
1// File created from ../../../src/lib/dhcpsrv/fuzz_messages.mes
2
3#include <cstddef>
4#include <log/message_types.h>
6
7namespace isc {
8namespace dhcp {
9
10extern const isc::log::MessageID FUZZ_DATA_READ = "FUZZ_DATA_READ";
11extern const isc::log::MessageID FUZZ_INIT_COMPLETE = "FUZZ_INIT_COMPLETE";
12extern const isc::log::MessageID FUZZ_INIT_FAIL = "FUZZ_INIT_FAIL";
13extern const isc::log::MessageID FUZZ_READ_FAIL = "FUZZ_READ_FAIL";
14extern const isc::log::MessageID FUZZ_SEND = "FUZZ_SEND";
15extern const isc::log::MessageID FUZZ_SEND_ERROR = "FUZZ_SEND_ERROR";
16extern const isc::log::MessageID FUZZ_SHORT_SEND = "FUZZ_SHORT_SEND";
17extern const isc::log::MessageID FUZZ_SOCKET_CREATE_FAIL = "FUZZ_SOCKET_CREATE_FAIL";
18
19} // namespace dhcp
20} // namespace isc
21
22namespace {
23
24const char* values[] = {
25 "FUZZ_DATA_READ", "read %1 byte(s) from AFL via stdin",
26 "FUZZ_INIT_COMPLETE", "fuzz initialization complete: interface %1, address %2, port %3, max loops %4",
27 "FUZZ_INIT_FAIL", "fuzz initialization failure, reason: %1",
28 "FUZZ_READ_FAIL", "error reading input from fuzzer: %1",
29 "FUZZ_SEND", "sent %1 byte(s) to the socket connected to the Kea interface",
30 "FUZZ_SEND_ERROR", "failed to send data to Kea input socket: %1",
31 "FUZZ_SHORT_SEND", "expected to send %1 bytes to Kea input socket but only sent %2",
32 "FUZZ_SOCKET_CREATE_FAIL", "failed to crease socket for use by fuzzing thread: %1",
33 NULL
34};
35
36const isc::log::MessageInitializer initializer(values);
37
38} // Anonymous namespace
39
Initialize Message Dictionary.
const isc::log::MessageID FUZZ_INIT_FAIL
const isc::log::MessageID FUZZ_SHORT_SEND
const isc::log::MessageID FUZZ_INIT_COMPLETE
const isc::log::MessageID FUZZ_SEND_ERROR
const isc::log::MessageID FUZZ_SOCKET_CREATE_FAIL
const isc::log::MessageID FUZZ_READ_FAIL
const isc::log::MessageID FUZZ_DATA_READ
const isc::log::MessageID FUZZ_SEND
const char * MessageID
Defines the logger used by the top-level component of kea-lfc.