suricata
detect-hostbits.c File Reference
#include "suricata-common.h"
#include "decode.h"
#include "detect.h"
#include "threads.h"
#include "flow.h"
#include "flow-util.h"
#include "detect-hostbits.h"
#include "util-spm.h"
#include "detect-engine-sigorder.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 "flow-bit.h"
#include "host-bit.h"
#include "util-var-name.h"
#include "util-unittest.h"
#include "util-debug.h"
Include dependency graph for detect-hostbits.c:

Go to the source code of this file.

Macros

#define PARSE_REGEX
 

Functions

void DetectHostbitFree (void *)
 
void HostBitsRegisterTests (void)
 this function registers unit tests for HostBits More...
 
void DetectHostbitsRegister (void)
 
int DetectXbitMatchHost (Packet *p, const DetectXbitsData *xd)
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

Implements the hostbits keyword

Definition in file detect-hostbits.c.

Macro Definition Documentation

#define PARSE_REGEX
Value:
"([a-z]+)" /* Action */ \
"(?:\\s*,\\s*([^\\s,]+))?(?:\\s*)?" /* Name. */ \
"(?:\\s*,\\s*([^,\\s]+))?(?:\\s*)?" /* Direction. */ \
"(.+)?" /* Any remainding data. */

Definition at line 64 of file detect-hostbits.c.

Referenced by DetectHostbitsRegister().

Function Documentation

void HostBitsRegisterTests ( void  )

this function registers unit tests for HostBits

Definition at line 1229 of file detect-hostbits.c.

References UtRegisterTest().

Referenced by DetectHostbitsRegister().

Here is the call graph for this function:

Here is the caller graph for this function: