suricata
detect-fast-pattern.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SCFPSupportSMList_
 

Typedefs

typedef struct SCFPSupportSMList_ SCFPSupportSMList
 

Functions

void SupportFastPatternForSigMatchList (int list_id, int priority)
 Lets one add a sm list id to be searched for potential fp supported keywords later. More...
 
int FastPatternSupportEnabledForSigMatchList (const DetectEngineCtx *de_ctx, const int list_id)
 Checks if a particular list(Signature->sm_lists[]) is in the list of lists that need to be searched for a keyword that has fp support. More...
 
void SupportFastPatternForSigMatchTypes (void)
 Registers the keywords(SMs) that should be given fp support. More...
 
void DetectFastPatternRegister (void)
 Registration function for fast_pattern keyword. More...
 

Variables

SCFPSupportSMListsm_fp_support_smlist_list
 

Detailed Description

Typedef Documentation

◆ SCFPSupportSMList

Function Documentation

◆ DetectFastPatternRegister()

void DetectFastPatternRegister ( void  )

Registration function for fast_pattern keyword.

Definition at line 161 of file detect-fast-pattern.c.

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

Referenced by SigTableSetup().

Here is the caller graph for this function:

◆ FastPatternSupportEnabledForSigMatchList()

int FastPatternSupportEnabledForSigMatchList ( const DetectEngineCtx de_ctx,
const int  list_id 
)

Checks if a particular list(Signature->sm_lists[]) is in the list of lists that need to be searched for a keyword that has fp support.

Parameters
list_idThe list id.
Return values
1If supported.
0If not.

Definition at line 61 of file detect-fast-pattern.c.

References DETECT_SM_LIST_PMATCH, DetectBufferTypeSupportsMpmGetById(), SCFPSupportSMList_::list_id, SCFPSupportSMList_::next, and sm_fp_support_smlist_list.

Referenced by RetrieveFPForSig().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SupportFastPatternForSigMatchList()

void SupportFastPatternForSigMatchList ( int  list_id,
int  priority 
)

Lets one add a sm list id to be searched for potential fp supported keywords later.

Parameters
list_idSM list id.
priorityPriority for this list.

Definition at line 91 of file detect-fast-pattern.c.

References SCFPSupportSMList_::next, SCLogDebug, SCMalloc, sm_fp_support_smlist_list, and unlikely.

Referenced by DetectAppLayerMpmRegisterByParentId(), DetectPktMpmRegisterByParentId(), and SupportFastPatternForSigMatchTypes().

Here is the caller graph for this function:

◆ SupportFastPatternForSigMatchTypes()

void SupportFastPatternForSigMatchTypes ( void  )

Registers the keywords(SMs) that should be given fp support.

Definition at line 140 of file detect-fast-pattern.c.

References DETECT_SM_LIST_PMATCH, SCFPSupportSMList_::list_id, SCFPSupportSMList_::next, SCFPSupportSMList_::priority, sm_fp_support_smlist_list, and SupportFastPatternForSigMatchList().

Referenced by GlobalsInitPreConfig().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ sm_fp_support_smlist_list