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.


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

Giuseppe Longo

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.

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: