]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
nfq: update running modes to hide device stats
authorEric Leblond <eric@regit.org>
Thu, 27 Feb 2014 17:07:34 +0000 (18:07 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 3 Mar 2014 09:14:36 +0000 (10:14 +0100)
This patch adds call to the function used to disable the display
of live device stats at exit.

src/runmode-nfq.c

index 3f750414bf0e35cf74ec13a442c1361517a2ca48..4f8fe808aa3f789bc65c7cb9ed465fc0fab6a64c 100644 (file)
@@ -44,6 +44,7 @@
 #include "util-cpu.h"
 #include "util-affinity.h"
 #include "util-runmodes.h"
+#include "util-device.h"
 
 static const char *default_mode;
 
@@ -98,6 +99,8 @@ int RunModeIpsNFQAuto(DetectEngineCtx *de_ctx)
 
     TimeModeSetLive();
 
+    LiveDeviceHasNoStats();
+
     ret = RunModeSetIPSAuto(de_ctx,
             NFQGetThread,
             "ReceiveNFQ",
@@ -118,6 +121,8 @@ int RunModeIpsNFQAutoFp(DetectEngineCtx *de_ctx)
 
     TimeModeSetLive();
 
+    LiveDeviceHasNoStats();
+
     ret = RunModeSetIPSAutoFp(de_ctx,
             NFQGetThread,
             "ReceiveNFQ",
@@ -137,6 +142,8 @@ int RunModeIpsNFQWorker(DetectEngineCtx *de_ctx)
 
     TimeModeSetLive();
 
+    LiveDeviceHasNoStats();
+
     ret = RunModeSetIPSWorker(de_ctx,
             NFQGetThread,
             "ReceiveNFQ",