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

Go to the source code of this file.

Functions

SigStringSigStringAlloc (void)
 Allocate SigString list member. More...
 
int SigStringAppend (SigFileLoaderStat *sigs_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.h.

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: