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

Go to the source code of this file.

Macros

#define PARSE_REGEX   "^\\s*([0-9]{0,10})\\s*(?:,\\s*([0-9]{0,10}|[*])\\s*(?:,\\s*([0-9]{0,10}|[*]))?)?\\s*$"
 Regex for parsing our rpc options. More...
 

Functions

void DetectRpcRegisterTests (void)
 this function registers unit tests for DetectRpc More...
 
void DetectRpcFree (void *ptr)
 this function will free memory associated with DetectRpcData More...
 
void DetectRpcRegister (void)
 Registration function for rpc keyword. More...
 

Detailed Description

Author
Pablo Rincon pablo.nosp@m..rin.nosp@m.con.c.nosp@m.resp.nosp@m.o@gma.nosp@m.il.c.nosp@m.om

Implements RPC keyword

Definition in file detect-rpc.c.

Macro Definition Documentation

◆ PARSE_REGEX

#define PARSE_REGEX   "^\\s*([0-9]{0,10})\\s*(?:,\\s*([0-9]{0,10}|[*])\\s*(?:,\\s*([0-9]{0,10}|[*]))?)?\\s*$"

Regex for parsing our rpc options.

Definition at line 46 of file detect-rpc.c.

Function Documentation

◆ DetectRpcFree()

void DetectRpcFree ( void *  ptr)

this function will free memory associated with DetectRpcData

Parameters
rdpointer to DetectRpcData

Definition at line 287 of file detect-rpc.c.

References SCEnter, SCFree, and SCReturn.

◆ DetectRpcRegister()

void DetectRpcRegister ( void  )

Registration function for rpc keyword.

Definition at line 59 of file detect-rpc.c.

References SigTableElmt_::desc, DETECT_RPC, DOC_URL, DOC_VERSION, SigTableElmt_::Match, SigTableElmt_::name, sigmatch_table, and SigTableElmt_::url.

Referenced by SigTableSetup().

Here is the caller graph for this function:

◆ DetectRpcRegisterTests()

void DetectRpcRegisterTests ( void  )

this function registers unit tests for DetectRpc

Definition at line 576 of file detect-rpc.c.

References UtRegisterTest().

Here is the call graph for this function: