diff options
author | Stephen Morris <stephen@isc.org> | 2019-12-19 11:24:17 +0100 |
---|---|---|
committer | Stephen Morris <stephen@isc.org> | 2019-12-20 18:55:45 +0100 |
commit | 08381e6773c2207dca99b280de006d829ff972b8 (patch) | |
tree | 3c00f4a8d2da7f3cef0fe0f8d8a6b3ea6d582e57 /src/lib/dhcpsrv/fuzz_messages.cc | |
parent | [#640] Major refactoring of fuzzing code (diff) | |
download | kea-08381e6773c2207dca99b280de006d829ff972b8.tar.xz kea-08381e6773c2207dca99b280de006d829ff972b8.zip |
[#640] Simplification of fuzzing structure
Instead of using a separate thread to read input from the fuzzer,
the input is now read in the main thread and transferred to the
interface on which Kea is expecting it to appear.
Diffstat (limited to 'src/lib/dhcpsrv/fuzz_messages.cc')
-rw-r--r-- | src/lib/dhcpsrv/fuzz_messages.cc | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/src/lib/dhcpsrv/fuzz_messages.cc b/src/lib/dhcpsrv/fuzz_messages.cc index 65dfe4de2d..de3e115040 100644 --- a/src/lib/dhcpsrv/fuzz_messages.cc +++ b/src/lib/dhcpsrv/fuzz_messages.cc @@ -1,4 +1,4 @@ -// File created from ../../../src/lib/dhcpsrv/fuzz_messages.mes on Sun Jun 16 2019 18:13 +// File created from ../../../src/lib/dhcpsrv/fuzz_messages.mes on Mon Jul 01 2019 12:28 #include <cstddef> #include <log/message_types.h> @@ -10,23 +10,11 @@ namespace dhcp { extern const isc::log::MessageID FUZZ_DATA_READ = "FUZZ_DATA_READ"; extern const isc::log::MessageID FUZZ_INIT_COMPLETE = "FUZZ_INIT_COMPLETE"; extern const isc::log::MessageID FUZZ_INIT_FAIL = "FUZZ_INIT_FAIL"; -extern const isc::log::MessageID FUZZ_INTERFACE = "FUZZ_INTERFACE"; -extern const isc::log::MessageID FUZZ_LOOP_EXIT = "FUZZ_LOOP_EXIT"; -extern const isc::log::MessageID FUZZ_LOOP_MAX = "FUZZ_LOOP_MAX"; -extern const isc::log::MessageID FUZZ_PACKET_PROCESSED_CALLED = "FUZZ_PACKET_PROCESSED_CALLED"; extern const isc::log::MessageID FUZZ_READ_FAIL = "FUZZ_READ_FAIL"; extern const isc::log::MessageID FUZZ_SEND = "FUZZ_SEND"; extern const isc::log::MessageID FUZZ_SEND_ERROR = "FUZZ_SEND_ERROR"; -extern const isc::log::MessageID FUZZ_SET = "FUZZ_SET"; -extern const isc::log::MessageID FUZZ_SETTING = "FUZZ_SETTING"; extern const isc::log::MessageID FUZZ_SHORT_SEND = "FUZZ_SHORT_SEND"; -extern const isc::log::MessageID FUZZ_SHUTDOWN_INITIATED = "FUZZ_SHUTDOWN_INITIATED"; extern const isc::log::MessageID FUZZ_SOCKET_CREATE_FAIL = "FUZZ_SOCKET_CREATE_FAIL"; -extern const isc::log::MessageID FUZZ_THREAD_NOT_TERMINATED = "FUZZ_THREAD_NOT_TERMINATED"; -extern const isc::log::MessageID FUZZ_THREAD_TERMINATED = "FUZZ_THREAD_TERMINATED"; -extern const isc::log::MessageID FUZZ_THREAD_WAIT = "FUZZ_THREAD_WAIT"; -extern const isc::log::MessageID FUZZ_WAITED = "FUZZ_WAITED"; -extern const isc::log::MessageID FUZZ_WAITING = "FUZZ_WAITING"; } // namespace dhcp } // namespace isc @@ -37,23 +25,11 @@ const char* values[] = { "FUZZ_DATA_READ", "read %1 byte(s) from AFL via stdin", "FUZZ_INIT_COMPLETE", "fuzz initialization complete: interface %1, address %2, port %3, max loops %4", "FUZZ_INIT_FAIL", "fuzz initialization failure, reason: %1", - "FUZZ_INTERFACE", "fuzzing will use interface %1 (address %2, port %3)", - "FUZZ_LOOP_EXIT", "fuzzing loop has exited, shutting down Kea", - "FUZZ_LOOP_MAX", "fuzzing loop will run %1 time(s) before exiting", - "FUZZ_PACKET_PROCESSED_CALLED", "packetProcessed has been called", "FUZZ_READ_FAIL", "error reading input from fuzzer: %1", "FUZZ_SEND", "sent %1 byte(s) to the socket connected to the Kea interface", "FUZZ_SEND_ERROR", "failed to send data to Kea input socket: %1", - "FUZZ_SET", "successfully set %1 condition variable", - "FUZZ_SETTING", "setting %1 condition variable", "FUZZ_SHORT_SEND", "expected to send %d bytes to Kea input socket but only sent %2", - "FUZZ_SHUTDOWN_INITIATED", "shutdown initated, shutdown flag is set", "FUZZ_SOCKET_CREATE_FAIL", "failed to crease socket for use by fuzzing thread: %1", - "FUZZ_THREAD_NOT_TERMINATED", "fuzzing thread has not terminated", - "FUZZ_THREAD_TERMINATED", "fuzzing thread has terminated", - "FUZZ_THREAD_WAIT", "waiting for fuzzing thread to terminate", - "FUZZ_WAITED", "successfully waited for for %1 condition variable to be set", - "FUZZ_WAITING", "waiting for %1 condition variable to be set", NULL }; |