From: Eric Leblond Date: Thu, 27 Feb 2014 17:07:34 +0000 (+0100) Subject: nfq: update running modes to hide device stats X-Git-Tag: suricata-2.0rc2~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00c8408c5542c98b0802ad395883eb465859eb31;p=thirdparty%2Fsuricata.git nfq: update running modes to hide device stats This patch adds call to the function used to disable the display of live device stats at exit. --- diff --git a/src/runmode-nfq.c b/src/runmode-nfq.c index 3f750414bf..4f8fe808aa 100644 --- a/src/runmode-nfq.c +++ b/src/runmode-nfq.c @@ -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",