flow-worker.c File Reference
#include "suricata-common.h"
#include "suricata.h"
#include "decode.h"
#include "detect.h"
#include "stream-tcp.h"
#include "app-layer.h"
#include "detect-engine.h"
#include "output.h"
#include "app-layer-parser.h"
#include "util-validate.h"
#include "flow-util.h"
Include dependency graph for flow-worker.c:

Go to the source code of this file.

Data Structures

struct  FlowWorkerThreadData_


typedef DetectEngineThreadCtxDetectEngineThreadCtxPtr
typedef struct FlowWorkerThreadData_ FlowWorkerThreadData


void FlowWorkerReplaceDetectCtx (void *flow_worker, void *detect_ctx)
void * FlowWorkerGetDetectCtxPtr (void *flow_worker)
const char * ProfileFlowWorkerIdToString (enum ProfileFlowWorkerId fwi)
void TmModuleFlowWorkerRegister (void)

Detailed Description

Victor Julien

Flow Workers are single thread modules taking care of (almost) everything related to packets with flows:

  • Lookup/creation
  • Stream tracking, reassembly
  • Applayer update
  • Detection

This all while holding the flow lock.

Definition in file flow-worker.c.

Typedef Documentation

◆ DetectEngineThreadCtxPtr

Definition at line 49 of file flow-worker.c.

◆ FlowWorkerThreadData

Function Documentation

◆ FlowWorkerGetDetectCtxPtr()

void* FlowWorkerGetDetectCtxPtr ( void *  flow_worker)

Definition at line 320 of file flow-worker.c.

References SC_ATOMIC_GET.

◆ FlowWorkerReplaceDetectCtx()

void FlowWorkerReplaceDetectCtx ( void *  flow_worker,
void *  detect_ctx 

Definition at line 313 of file flow-worker.c.

References SC_ATOMIC_SET.

◆ ProfileFlowWorkerIdToString()

◆ TmModuleFlowWorkerRegister()

void TmModuleFlowWorkerRegister ( void  )

Definition at line 352 of file flow-worker.c.

References TmModule_::name, TmModule_::ThreadInit, TMM_FLOWWORKER, and tmm_modules.

Referenced by RegisterAllModules().

Here is the caller graph for this function: