]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
napatech: emit HBA deprecation only once 10644/head 10648/head 9478/head
authorJonathan Perkins <jonathan@corelight.com>
Fri, 21 Jul 2023 18:27:37 +0000 (14:27 -0400)
committerJonathan Perkins <jonathan@corelight.com>
Wed, 13 Mar 2024 19:51:13 +0000 (15:51 -0400)
Issue: 6313
This commit removes duplicate HBA deprecation messages from being
emitted.

src/runmode-napatech.c

index cb8f560ea35098d0c411e56f4cdc1b2e7e051368..fe0212437989925b48abb0e2359afcdeb9db968b 100644 (file)
@@ -200,7 +200,12 @@ static void *NapatechConfigParser(const char *device)
     if (ConfGetInt("napatech.hba", &conf->hba) == 0) {
         conf->hba = -1;
     } else {
-        SCLogWarning("Napatech Host Buffer Allocation (hba) will be deprecated in Suricata v7.0.");
+        static bool warn_once = false;
+        if (!warn_once) {
+            SCLogWarning(
+                    "Napatech Host Buffer Allowance (hba) will be deprecated in Suricata v8.0.");
+            warn_once = true;
+        }
     }
     return (void *) conf;
 }