suricata
util-detect.c File Reference
#include "suricata-common.h"
#include "suricata.h"
#include "detect.h"
#include "util-detect.h"
Include dependency graph for util-detect.c:

Go to the source code of this file.

Functions

SigStringSigStringAlloc (void)
 Allocate SigString list member. More...
 
int SigStringAppend (SigFileLoaderStat *sig_stats, const char *sig_file, const char *sig_str, const char *sig_error, int line)
 Append a new list member to SigString list. More...
 

Detailed Description

Author
Giuseppe Longo glong.nosp@m.o@st.nosp@m.amus-.nosp@m.netw.nosp@m.orks..nosp@m.com

Detection engine helper functions

Definition in file util-detect.c.

Function Documentation

◆ SigStringAlloc()

SigString* SigStringAlloc ( void  )

Allocate SigString list member.

Return values
Pointerto SigString

Definition at line 36 of file util-detect.c.

References SigString_::line, SCCalloc, and unlikely.

Referenced by SigStringAppend().

Here is the caller graph for this function:

◆ SigStringAppend()

int SigStringAppend ( SigFileLoaderStat sig_stats,
const char *  sig_file,
const char *  sig_str,
const char *  sig_error,
int  line 
)

Append a new list member to SigString list.

Parameters
listpointer to the start of the SigString list
sig_filefilename that contains the signature
sig_strsignature in string format
lineline line number
Return values
1on success 0 on failure

Definition at line 104 of file util-detect.c.

References SigStringAlloc().

Here is the call graph for this function: