|
|
@ -146,12 +146,12 @@ void *TmThreadsSlot1NoIn(void *td)
|
|
|
|
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
|
|
|
|
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Drop the capabilities for this thread */
|
|
|
|
|
|
|
|
SCDropCaps(tv);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (tv->thread_setup_flags != 0)
|
|
|
|
if (tv->thread_setup_flags != 0)
|
|
|
|
TmThreadSetupOptions(tv);
|
|
|
|
TmThreadSetupOptions(tv);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Drop the capabilities for this thread */
|
|
|
|
|
|
|
|
SCDropCaps(tv);
|
|
|
|
|
|
|
|
|
|
|
|
if (s->SlotThreadInit != NULL) {
|
|
|
|
if (s->SlotThreadInit != NULL) {
|
|
|
|
void *slot_data = NULL;
|
|
|
|
void *slot_data = NULL;
|
|
|
|
r = s->SlotThreadInit(tv, s->slot_initdata, &slot_data);
|
|
|
|
r = s->SlotThreadInit(tv, s->slot_initdata, &slot_data);
|
|
|
@ -245,12 +245,12 @@ void *TmThreadsSlot1NoOut(void *td)
|
|
|
|
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
|
|
|
|
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Drop the capabilities for this thread */
|
|
|
|
|
|
|
|
SCDropCaps(tv);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (tv->thread_setup_flags != 0)
|
|
|
|
if (tv->thread_setup_flags != 0)
|
|
|
|
TmThreadSetupOptions(tv);
|
|
|
|
TmThreadSetupOptions(tv);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Drop the capabilities for this thread */
|
|
|
|
|
|
|
|
SCDropCaps(tv);
|
|
|
|
|
|
|
|
|
|
|
|
if (s->SlotThreadInit != NULL) {
|
|
|
|
if (s->SlotThreadInit != NULL) {
|
|
|
|
void *slot_data = NULL;
|
|
|
|
void *slot_data = NULL;
|
|
|
|
r = s->SlotThreadInit(tv, s->slot_initdata, &slot_data);
|
|
|
|
r = s->SlotThreadInit(tv, s->slot_initdata, &slot_data);
|
|
|
@ -325,12 +325,12 @@ void *TmThreadsSlot1NoInOut(void *td)
|
|
|
|
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
|
|
|
|
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Drop the capabilities for this thread */
|
|
|
|
|
|
|
|
SCDropCaps(tv);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (tv->thread_setup_flags != 0)
|
|
|
|
if (tv->thread_setup_flags != 0)
|
|
|
|
TmThreadSetupOptions(tv);
|
|
|
|
TmThreadSetupOptions(tv);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Drop the capabilities for this thread */
|
|
|
|
|
|
|
|
SCDropCaps(tv);
|
|
|
|
|
|
|
|
|
|
|
|
SCLogDebug("%s starting", tv->name);
|
|
|
|
SCLogDebug("%s starting", tv->name);
|
|
|
|
|
|
|
|
|
|
|
|
if (s->SlotThreadInit != NULL) {
|
|
|
|
if (s->SlotThreadInit != NULL) {
|
|
|
@ -402,12 +402,12 @@ void *TmThreadsSlot1(void *td)
|
|
|
|
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
|
|
|
|
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Drop the capabilities for this thread */
|
|
|
|
|
|
|
|
SCDropCaps(tv);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (tv->thread_setup_flags != 0)
|
|
|
|
if (tv->thread_setup_flags != 0)
|
|
|
|
TmThreadSetupOptions(tv);
|
|
|
|
TmThreadSetupOptions(tv);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Drop the capabilities for this thread */
|
|
|
|
|
|
|
|
SCDropCaps(tv);
|
|
|
|
|
|
|
|
|
|
|
|
SCLogDebug("%s starting", tv->name);
|
|
|
|
SCLogDebug("%s starting", tv->name);
|
|
|
|
|
|
|
|
|
|
|
|
if (s->SlotThreadInit != NULL) {
|
|
|
|
if (s->SlotThreadInit != NULL) {
|
|
|
@ -609,12 +609,12 @@ void *TmThreadsSlotPktAcqLoop(void *td) {
|
|
|
|
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
|
|
|
|
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Drop the capabilities for this thread */
|
|
|
|
|
|
|
|
SCDropCaps(tv);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (tv->thread_setup_flags != 0)
|
|
|
|
if (tv->thread_setup_flags != 0)
|
|
|
|
TmThreadSetupOptions(tv);
|
|
|
|
TmThreadSetupOptions(tv);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Drop the capabilities for this thread */
|
|
|
|
|
|
|
|
SCDropCaps(tv);
|
|
|
|
|
|
|
|
|
|
|
|
/* check if we are setup properly */
|
|
|
|
/* check if we are setup properly */
|
|
|
|
if (s == NULL || s->PktAcqLoop == NULL || tv->tmqh_in == NULL || tv->tmqh_out == NULL) {
|
|
|
|
if (s == NULL || s->PktAcqLoop == NULL || tv->tmqh_in == NULL || tv->tmqh_out == NULL) {
|
|
|
|
SCLogError(SC_ERR_FATAL, "TmSlot or ThreadVars badly setup: s=%p,"
|
|
|
|
SCLogError(SC_ERR_FATAL, "TmSlot or ThreadVars badly setup: s=%p,"
|
|
|
@ -702,12 +702,12 @@ void *TmThreadsSlotVar(void *td)
|
|
|
|
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
|
|
|
|
SCLogWarning(SC_ERR_THREAD_INIT, "Unable to set thread name");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Drop the capabilities for this thread */
|
|
|
|
|
|
|
|
SCDropCaps(tv);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (tv->thread_setup_flags != 0)
|
|
|
|
if (tv->thread_setup_flags != 0)
|
|
|
|
TmThreadSetupOptions(tv);
|
|
|
|
TmThreadSetupOptions(tv);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Drop the capabilities for this thread */
|
|
|
|
|
|
|
|
SCDropCaps(tv);
|
|
|
|
|
|
|
|
|
|
|
|
/* check if we are setup properly */
|
|
|
|
/* check if we are setup properly */
|
|
|
|
if (s == NULL || tv->tmqh_in == NULL || tv->tmqh_out == NULL) {
|
|
|
|
if (s == NULL || tv->tmqh_in == NULL || tv->tmqh_out == NULL) {
|
|
|
|
EngineKill();
|
|
|
|
EngineKill();
|
|
|
|