suricata
detect-flowbits.c File Reference
#include "suricata-common.h"
#include "decode.h"
#include "detect.h"
#include "threads.h"
#include "flow.h"
#include "flow-bit.h"
#include "flow-util.h"
#include "detect-flowbits.h"
#include "util-spm.h"
#include "app-layer-parser.h"
#include "detect-parse.h"
#include "detect-engine.h"
#include "detect-engine-mpm.h"
#include "detect-engine-state.h"
#include "util-var-name.h"
#include "util-unittest.h"
#include "util-debug.h"
#include "output-json.h"
#include "util-buffer.h"
Include dependency graph for detect-flowbits.c:

Go to the source code of this file.

Data Structures

struct  FBAnalyze
 

Macros

#define PARSE_REGEX   "^([a-z]+)(?:,\\s*(.*))?"
 
#define MAX_SIDS   8
 

Functions

int DetectFlowbitMatch (DetectEngineThreadCtx *, Packet *, const Signature *, const SigMatchCtx *)
 
void DetectFlowbitFree (void *)
 
void FlowBitsRegisterTests (void)
 this function registers unit tests for FlowBits More...
 
void DetectFlowbitsRegister (void)
 
void DetectFlowbitsAnalyze (DetectEngineCtx *de_ctx)
 

Variables

SCMutex g_flowbits_dump_write_m = SCMUTEX_INITIALIZER
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t
Breno Silva breno.nosp@m..sil.nosp@m.va@gm.nosp@m.ail..nosp@m.com

Implements the flowbits keyword

Definition in file detect-flowbits.c.

Macro Definition Documentation

#define MAX_SIDS   8

Referenced by DetectFlowbitsAnalyze().

#define PARSE_REGEX   "^([a-z]+)(?:,\\s*(.*))?"

Definition at line 48 of file detect-flowbits.c.

Referenced by DetectFlowbitsRegister().

Function Documentation

void DetectFlowbitFree ( void *  ptr)

Definition at line 297 of file detect-flowbits.c.

References SCFree.

Referenced by DetectFlowbitsRegister().

Here is the caller graph for this function:

void FlowBitsRegisterTests ( void  )

this function registers unit tests for FlowBits

Definition at line 1086 of file detect-flowbits.c.

References UtRegisterTest().

Referenced by DetectFlowbitsRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

SCMutex g_flowbits_dump_write_m = SCMUTEX_INITIALIZER

Definition at line 537 of file detect-flowbits.c.