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.
suricata/src/detect-noalert.c

29 lines
799 B
C

/* NOALERT part of the detection engine. */
#include "eidps-common.h"
#include "detect.h"
int DetectNoalertSetup (DetectEngineCtx *, Signature *, SigMatch *, char *);
void DetectNoalertRegister (void) {
sigmatch_table[DETECT_NOALERT].name = "noalert";
sigmatch_table[DETECT_NOALERT].Match = NULL;
sigmatch_table[DETECT_NOALERT].Setup = DetectNoalertSetup;
sigmatch_table[DETECT_NOALERT].Free = NULL;
sigmatch_table[DETECT_NOALERT].RegisterTests = NULL;
sigmatch_table[DETECT_NOALERT].flags |= SIGMATCH_NOOPT;
}
int DetectNoalertSetup (DetectEngineCtx *de_ctx, Signature *s, SigMatch *m, char *nullstr)
{
if (nullstr != NULL) {
printf("DetectNoalertSetup: nocase has no value\n");
return -1;
}
s->flags |= SIG_FLAG_NOALERT;
return 0;
}