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

int 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)
 

Detailed Description

Function Documentation

◆ SCThresholdConfGlobalInit()

void SCThresholdConfGlobalInit ( void  )

Definition at line 98 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 165 of file util-threshold-config.c.

◆ SCThresholdConfParseFile()

int 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 980 of file util-threshold-config.c.

◆ SCThresholdConfRegisterTests()

void SCThresholdConfRegisterTests ( void  )

This function registers unit tests for Classification Config API.

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

References UtRegisterTest().

Here is the call graph for this function: