suricata
detect-icode.c File Reference
#include "suricata-common.h"
#include "debug.h"
#include "decode.h"
#include "detect.h"
#include "detect-parse.h"
#include "detect-engine-prefilter-common.h"
#include "detect-icode.h"
#include "util-byte.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
#include "util-debug.h"
#include "detect-engine.h"
#include "detect-engine-mpm.h"
Include dependency graph for detect-icode.c:

Go to the source code of this file.

Data Structures

struct  DetectICodeData_
 

Macros

#define PARSE_REGEX   "^\\s*(<|>)?\\s*([0-9]+)\\s*(?:<>\\s*([0-9]+))?\\s*$"
 Regex for parsing our icode options. More...
 
#define DETECT_ICODE_EQ   PREFILTER_U8HASH_MODE_EQ
 
#define DETECT_ICODE_LT   PREFILTER_U8HASH_MODE_LT
 
#define DETECT_ICODE_GT   PREFILTER_U8HASH_MODE_GT
 
#define DETECT_ICODE_RN   PREFILTER_U8HASH_MODE_RA
 
#define MAX_SUBSTRINGS   30
 

Typedefs

typedef struct DetectICodeData_ DetectICodeData
 

Functions

void DetectICodeRegisterTests (void)
 this function registers unit tests for DetectICode More...
 
void DetectICodeFree (void *ptr)
 this function will free memory associated with DetectICodeData More...
 
void DetectICodeRegister (void)
 Registration function for icode: keyword. More...
 

Detailed Description

Author
Gerardo Iglesias igles.nosp@m.iasg.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Implements icode keyword support

Author
Gerardo Iglesias igles.nosp@m.iasg.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Definition in file detect-icode.c.

Macro Definition Documentation

#define DETECT_ICODE_EQ   PREFILTER_U8HASH_MODE_EQ

"equal" operator

Definition at line 77 of file detect-icode.c.

Referenced by DetectICodeFree().

#define DETECT_ICODE_GT   PREFILTER_U8HASH_MODE_GT

"greater than" operator

Definition at line 79 of file detect-icode.c.

Referenced by DetectICodeFree().

#define DETECT_ICODE_LT   PREFILTER_U8HASH_MODE_LT

"less than" operator

Definition at line 78 of file detect-icode.c.

Referenced by DetectICodeFree().

#define DETECT_ICODE_RN   PREFILTER_U8HASH_MODE_RA

"range" operator

Definition at line 80 of file detect-icode.c.

Referenced by DetectICodeFree().

#define MAX_SUBSTRINGS   30
#define PARSE_REGEX   "^\\s*(<|>)?\\s*([0-9]+)\\s*(?:<>\\s*([0-9]+))?\\s*$"

Regex for parsing our icode options.

Definition at line 44 of file detect-icode.c.

Referenced by DetectICodeRegister().

Typedef Documentation

Function Documentation

void DetectICodeRegister ( void  )
void DetectICodeRegisterTests ( void  )

this function registers unit tests for DetectICode

Definition at line 581 of file detect-icode.c.

References UtRegisterTest().

Referenced by DetectICodeRegister().

Here is the call graph for this function:

Here is the caller graph for this function: