summaryrefslogtreecommitdiffstats
path: root/src/runmodes.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-24 01:56:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-24 01:56:35 +0000
commitea7b101b409c45955f5d5446bb3bfdf7758b9226 (patch)
treeaca5d4fbf94bc524c392a5dd9cf4571f3a29ccb8 /src/runmodes.c
parentAdding upstream version 1:7.0.4. (diff)
downloadsuricata-ea7b101b409c45955f5d5446bb3bfdf7758b9226.tar.xz
suricata-ea7b101b409c45955f5d5446bb3bfdf7758b9226.zip
Adding upstream version 1:7.0.5.upstream/1%7.0.5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/runmodes.c')
-rw-r--r--src/runmodes.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/runmodes.c b/src/runmodes.c
index 348adfa..d4b57df 100644
--- a/src/runmodes.c
+++ b/src/runmodes.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2022 Open Information Security Foundation
+/* Copyright (C) 2007-2024 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
@@ -70,6 +70,7 @@
#include "counters.h"
#include "suricata-plugin.h"
+#include "util-device.h"
int debuglog_enabled = 0;
int threading_set_cpu_affinity = FALSE;
@@ -408,6 +409,14 @@ void RunModeEngineIsIPS(int capture_mode, const char *runmode, const char *captu
if (mode->RunModeIsIPSEnabled != NULL) {
mode->RunModeIsIPSEnabled();
+
+ if (EngineModeIsIPS()) {
+ extern uint16_t g_livedev_mask;
+ if (g_livedev_mask != 0 && LiveGetDeviceCount() > 0) {
+ SCLogWarning("disabling livedev.use-for-tracking with IPS mode. See ticket #6726.");
+ g_livedev_mask = 0;
+ }
+ }
}
}