suricata
detect-rpc.c File Reference
#include "suricata-common.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 "detect-engine-build.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
#include "util-debug.h"
#include "util-byte.h"
#include "detect-engine-alert.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 DetectRpcFree (DetectEngineCtx *de_ctx, 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 47 of file detect-rpc.c.

Function Documentation

◆ DetectRpcFree()

void DetectRpcFree ( DetectEngineCtx de_ctx,
void *  ptr 
)

this function will free memory associated with DetectRpcData

Parameters
rdpointer to DetectRpcData

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

References SCEnter, SCFree, and SCReturn.

◆ DetectRpcRegister()

void DetectRpcRegister ( void  )

Registration function for rpc keyword.

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

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

Referenced by SigTableSetup().

Here is the caller graph for this function: