suricata
util-threshold-config.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void SCThresholdConfParseFile (DetectEngineCtx *, FILE *)
 Parses the Threshold Config file. More...
 
int SCThresholdConfInitContext (DetectEngineCtx *)
 Inits the context to be used by the Threshold Config parsing API. More...
 
void SCThresholdConfRegisterTests (void)
 This function registers unit tests for Classification Config API. More...
 
void SCThresholdConfGlobalInit (void)
 
void SCThresholdConfGlobalFree (void)
 

Detailed Description

Function Documentation

◆ SCThresholdConfGlobalFree()

void SCThresholdConfGlobalFree ( void  )

Definition at line 152 of file util-threshold-config.c.

◆ SCThresholdConfGlobalInit()

void SCThresholdConfGlobalInit ( void  )

Definition at line 104 of file util-threshold-config.c.

Referenced by GlobalsInitPreConfig().

Here is the caller graph for this function:

◆ SCThresholdConfInitContext()

int SCThresholdConfInitContext ( DetectEngineCtx de_ctx)

Inits the context to be used by the Threshold Config parsing API.

   This function initializes the hash table to be used by the Detection
   Engine Context to hold the data from the threshold.config file,
   obtains the file desc to parse the threshold.config file, and
   inits the regex used to parse the lines from threshold.config
   file.
Parameters
de_ctxPointer to the Detection Engine Context.
Return values
0On success.
-1On failure.

Definition at line 238 of file util-threshold-config.c.

◆ SCThresholdConfParseFile()

void SCThresholdConfParseFile ( DetectEngineCtx de_ctx,
FILE *  fp 
)

Parses the Threshold Config file.

Parameters
de_ctxPointer to the Detection Engine Context.
fdPointer to file descriptor.

Definition at line 1072 of file util-threshold-config.c.

◆ SCThresholdConfRegisterTests()

void SCThresholdConfRegisterTests ( void  )

This function registers unit tests for Classification Config API.

Definition at line 2699 of file util-threshold-config.c.

References UtRegisterTest().

Here is the call graph for this function: