suricata
detect-urilen.c File Reference
#include "suricata-common.h"
#include "app-layer.h"
#include "app-layer-protos.h"
#include "app-layer-htp.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
#include "detect.h"
#include "detect-parse.h"
#include "detect-engine.h"
#include "detect-engine-state.h"
#include "detect-content.h"
#include "detect-urilen.h"
#include "util-debug.h"
#include "util-byte.h"
#include "flow-util.h"
#include "stream-tcp.h"
#include "stream.h"
#include "stream-tcp-private.h"
#include "stream-tcp-reassemble.h"
#include "detect-engine-mpm.h"
#include "app-layer-parser.h"
Include dependency graph for detect-urilen.c:

Go to the source code of this file.

Macros

#define PARSE_REGEX   "^(?:\\s*)(<|>)?(?:\\s*)([0-9]{1,5})(?:\\s*)(?:(<>)(?:\\s*)([0-9]{1,5}))?\\s*(?:,\\s*(norm|raw))?\\s*$"
 Regex for parsing our urilen. More...
 
#define MAX_SUBSTRINGS   30
 

Functions

void DetectUrilenFree (void *ptr)
 this function will free memory associated with DetectUrilenData More...
 
void DetectUrilenRegisterTests (void)
 this function registers unit tests for DetectUrilen More...
 
void DetectUrilenRegister (void)
 Registration function for urilen: keyword. More...
 
void DetectUrilenApplyToContent (Signature *s, int list)
 set prefilter dsize pair More...
 
bool DetectUrilenValidateContent (const Signature *s, int list, const char **sigerror)
 

Detailed Description

Author
Gurvinder Singh gurvi.nosp@m.nder.nosp@m.sighd.nosp@m.ahiy.nosp@m.a@gma.nosp@m.il.c.nosp@m.om

Implements the urilen keyword

Definition in file detect-urilen.c.

Macro Definition Documentation

#define MAX_SUBSTRINGS   30

Referenced by DetectUrilenRegister().

#define PARSE_REGEX   "^(?:\\s*)(<|>)?(?:\\s*)([0-9]{1,5})(?:\\s*)(?:(<>)(?:\\s*)([0-9]{1,5}))?\\s*(?:,\\s*(norm|raw))?\\s*$"

Regex for parsing our urilen.

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

Referenced by DetectUrilenRegister().

Function Documentation

void DetectUrilenApplyToContent ( Signature s,
int  list 
)
void DetectUrilenFree ( void *  ptr)

this function will free memory associated with DetectUrilenData

Parameters
ptrpointer to DetectUrilenData

Definition at line 280 of file detect-urilen.c.

References SCFree.

Referenced by DetectUrilenRegister(), and DetectUrilenValidateContent().

Here is the caller graph for this function:

void DetectUrilenRegisterTests ( void  )

this function registers unit tests for DetectUrilen

Definition at line 737 of file detect-urilen.c.

References UtRegisterTest().

Referenced by DetectUrilenRegister().

Here is the call graph for this function:

Here is the caller graph for this function: