setAddress(ipversion);
// Check if the hard-coded maximum loop count is being overridden
- const char *loop_max_ptr = getenv("KEA_AFL_LOOP_MAX");
+ const char *loop_max_ptr = getenv("FUZZ_AFL_LOOP_MAX");
if (loop_max_ptr != 0) {
try {
loop_max_ = boost::lexical_cast<long>(loop_max_ptr);
}
if (loop_max_ <= 0) {
- reason << "KEA_AFL_LOOP_MAX is " << loop_max_ << ". "
+ reason << "FUZZ_AFL_LOOP_MAX is " << loop_max_ << ". "
<< "It must be an integer greater than zero.";
isc_throw(FuzzInitFail, reason.str());
}
stringstream reason; // Used in error messages
// Get the environment for the fuzzing: interface, address and port.
- interface_ = getenv("KEA_AFL_INTERFACE");
+ interface_ = getenv("FUZZ_AFL_INTERFACE");
if (! interface_) {
isc_throw(FuzzInitFail, "no fuzzing interface has been set");
}
// Now the address.
- address_ = getenv("KEA_AFL_ADDRESS");
+ address_ = getenv("FUZZ_AFL_ADDRESS");
if (address_ == 0) {
isc_throw(FuzzInitFail, "no fuzzing address has been set");
}
// ... and the port.
- const char *port_ptr = getenv("KEA_AFL_PORT");
+ const char *port_ptr = getenv("FUZZ_AFL_PORT");
if (port_ptr == 0) {
isc_throw(FuzzInitFail, "no fuzzing port has been set");
}
% FUZZ_LOOP_MAX fuzzing loop will run %1 time(s) before exiting
A debug message noting how many loops (i.e. packets from the fuzzer) the code
will process before Kea exits and the fuzzer restarts it. The hard-coded
-value can be overridden by setting the environment variable KEA_AFL_LOOP_MAX.
+value can be overridden by setting the environment variable FUZZ_AFL_LOOP_MAX.
% FUZZ_PACKET_PROCESSED_CALLED packetProcessed has been called
A debug message indicating that the processing of a packet by Kea has