]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#640,!351] Backout changes to environment variable names
authorStephen Morris <stephen@isc.org>
Tue, 2 Jul 2019 17:20:57 +0000 (18:20 +0100)
committerStephen Morris <stephen@isc.org>
Tue, 1 Oct 2019 16:00:21 +0000 (17:00 +0100)
It makes more sense to keep Kea fuzzing divorced from the
ISC fuzzing framework.

src/lib/dhcpsrv/fuzz.cc

index 25e2a9c80898e028494db7b58853cae7e5583d7e..e8aa66f7c9b685ae870be169a8454a55a10b1dad 100644 (file)
@@ -59,7 +59,7 @@ Fuzz::Fuzz(int ipversion, uint16_t port) :
         }
 
         // Check if the hard-coded maximum loop count is being overridden
-        const char *loop_max_ptr = getenv("FUZZ_AFL_LOOP_MAX");
+        const char *loop_max_ptr = getenv("KEA_AFL_LOOP_MAX");
         if (loop_max_ptr != 0) {
             try {
                 loop_max_ = boost::lexical_cast<long>(loop_max_ptr);
@@ -70,7 +70,7 @@ Fuzz::Fuzz(int ipversion, uint16_t port) :
             }
 
             if (loop_max_ <= 0) {
-                reason << "FUZZ_AFL_LOOP_MAX is " << loop_max_ << ". "
+                reason << "KEA_AFL_LOOP_MAX is " << loop_max_ << ". "
                        << "It must be an integer greater than zero.";
                 isc_throw(FuzzInitFail, reason.str());
             }
@@ -98,14 +98,14 @@ Fuzz::setAddress(int ipversion) {
     stringstream reason;    // Used in error messages
 
     // Get the environment for the fuzzing: interface, address and port.
-    interface_ = getenv("FUZZ_AFL_INTERFACE");
+    interface_ = getenv("KEA_AFL_INTERFACE");
     if (! interface_) {
         isc_throw(FuzzInitFail, "no fuzzing interface has been set");
     }
 
     // Now the address. (The port is specified via the "-p" command-line
     // switch and passed to this object through the constructor.)
-    address_ = getenv("FUZZ_AFL_ADDRESS");
+    address_ = getenv("KEA_AFL_ADDRESS");
     if (address_ == 0) {
         isc_throw(FuzzInitFail, "no fuzzing address has been set");
     }