mirror of https://github.com/OISF/suricata
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
887 B
C
31 lines
887 B
C
#ifndef __DETECT_PARSE_H__
|
|
#define __DETECT_PARSE_H__
|
|
|
|
/** Flags to indicate if the Signature parsing must be done
|
|
* switching the source and dest (for ip addresses and ports)
|
|
* or otherwise as normal */
|
|
enum {
|
|
SIG_DIREC_NORMAL,
|
|
SIG_DIREC_SWITCHED
|
|
};
|
|
|
|
/** Flags to indicate if are referencing the source of the Signature
|
|
* or the destination (for ip addresses and ports)*/
|
|
enum {
|
|
SIG_DIREC_SRC,
|
|
SIG_DIREC_DST
|
|
};
|
|
|
|
/* prototypes */
|
|
int SigParse(DetectEngineCtx *,Signature *, char *, uint8_t);
|
|
Signature *SigAlloc(void);
|
|
void SigFree(Signature *s);
|
|
Signature *SigInit(DetectEngineCtx *,char *sigstr);
|
|
SigMatch *SigMatchGetLastSM(Signature *, uint8_t);
|
|
void SigParsePrepare(void);
|
|
void SigParseRegisterTests(void);
|
|
Signature *DetectEngineAppendSig(DetectEngineCtx *, char *);
|
|
void SigMatchReplace(Signature *, SigMatch *, SigMatch *);
|
|
#endif /* __DETECT_PARSE_H__ */
|
|
|