|
|
|
@ -394,6 +394,9 @@ TmEcode ReceivePfringThreadInit(ThreadVars *tv, void *initdata, void **data) {
|
|
|
|
|
|
|
|
|
|
ptv->cluster_id = pfconf->cluster_id;
|
|
|
|
|
|
|
|
|
|
if ((ptv->threads == 1) && (strncmp(ptv->interface, "dna", 3) == 0)) {
|
|
|
|
|
SCLogInfo("DNA interface detected, not adding thread to cluster");
|
|
|
|
|
} else {
|
|
|
|
|
#ifdef HAVE_PFRING_CLUSTER_TYPE
|
|
|
|
|
ptv->ctype = pfconf->ctype;
|
|
|
|
|
rc = pfring_set_cluster(ptv->pd, ptv->cluster_id, ptv->ctype);
|
|
|
|
@ -407,6 +410,7 @@ TmEcode ReceivePfringThreadInit(ThreadVars *tv, void *initdata, void **data) {
|
|
|
|
|
pfconf->DerefFunc(pfconf);
|
|
|
|
|
return TM_ECODE_FAILED;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (ptv->threads > 1) {
|
|
|
|
|
SCLogInfo("(%s) Using PF_RING v.%d.%d.%d, interface %s, cluster-id %d",
|
|
|
|
|