]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Fix bug #1206 999/head
authorMats Klepsland <mats.klepsland@gmail.com>
Mon, 23 Jun 2014 07:14:16 +0000 (09:14 +0200)
committerMats Klepsland <mats.klepsland@gmail.com>
Mon, 23 Jun 2014 07:14:16 +0000 (09:14 +0200)
PF_RING ZC uses clusters in the same way as PF_RING DNA. Therefore,
this bug can be fixed as it was fixed for DNA (bug #598).

src/source-pfring.c

index 34eff68912b26ca193c3ec28a620242177f9adec..c239bfa102cc49b3de8fcff0b6129d4defa8622b 100644 (file)
@@ -472,6 +472,8 @@ TmEcode ReceivePfringThreadInit(ThreadVars *tv, void *initdata, void **data) {
 
     if ((ptv->threads == 1) && (strncmp(ptv->interface, "dna", 3) == 0)) {
         SCLogInfo("DNA interface detected, not adding thread to cluster");
+    } else if (strncmp(ptv->interface, "zc", 2) == 0) {
+        SCLogInfo("ZC interface detected, not adding thread to cluster");
     } else {
 #ifdef HAVE_PFRING_CLUSTER_TYPE
         ptv->ctype = pfconf->ctype;