]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
dag: Check for out-of-band control operations
authorJeff Lucovsky <jeff@lucovsky.org>
Fri, 24 Apr 2020 14:27:20 +0000 (10:27 -0400)
committerVictor Julien <victor@inliniac.net>
Mon, 27 Apr 2020 18:06:56 +0000 (20:06 +0200)
This commit causes the packet source to check for out of band control
operations when there are no packets immediately available.

(cherry picked from commit 5b13468bfcbbd5d5a2a9743b317d2e5a9c3a5afe)

src/source-erf-dag.c

index 1bd9a506f1ca795c54a7c4b7d792b6b5f581372f..4265641949aa6177b7ea608e8e2cf5c490c39c19 100644 (file)
@@ -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
@@ -350,6 +350,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;
                 }