From: Jeff Lucovsky Date: Fri, 24 Apr 2020 14:27:20 +0000 (-0400) Subject: dag: Check for out-of-band control operations X-Git-Tag: suricata-6.0.0-beta1~466 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b13468bfcbbd5d5a2a9743b317d2e5a9c3a5afe;p=thirdparty%2Fsuricata.git dag: Check for out-of-band control operations This commit causes the packet source to check for out of band control operations when there are no packets immediately available. --- diff --git a/src/source-erf-dag.c b/src/source-erf-dag.c index a248103702..71be63fc34 100644 --- a/src/source-erf-dag.c +++ b/src/source-erf-dag.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2010-2014 Open Information Security Foundation +/* Copyright (C) 2010-2020 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 @@ -349,6 +349,7 @@ ReceiveErfDagLoop(ThreadVars *tv, void *data, void *slot) if (top == NULL) { if (errno == EAGAIN) { if (dtv->dagstream & 0x1) { + TmThreadsCaptureHandleTimeout(tv, dtv->slot, NULL); usleep(10 * 1000); dtv->btm = dtv->top; }