suricata
|
#include "suricata-common.h"
#include "decode.h"
#include "detect.h"
#include "detect-engine.h"
#include "detect-parse.h"
#include "app-layer.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
#include "detect-isdataat.h"
#include "detect-content.h"
#include "detect-bytetest.h"
#include "detect-uricontent.h"
#include "detect-engine-build.h"
#include "flow.h"
#include "flow-var.h"
#include "util-debug.h"
#include "util-byte.h"
#include "detect-pcre.h"
#include "detect-byte.h"
Go to the source code of this file.
Macros | |
#define | PARSE_REGEX "^\\s*!?([^\\s,]+)\\s*(,\\s*relative)?\\s*(,\\s*rawbytes\\s*)?\\s*$" |
Regex for parsing our isdataat options. More... | |
Functions | |
int | DetectIsdataatSetup (DetectEngineCtx *de_ctx, Signature *s, const char *isdataatstr) |
This function is used to add the parsed isdataatdata into the current signature. More... | |
void | DetectIsdataatFree (DetectEngineCtx *de_ctx, void *ptr) |
this function will free memory associated with DetectIsdataatData More... | |
bool | DetectAbsentValidateContentCallback (Signature *s, const SignatureInitDataBuffer *b) |
void | DetectIsdataatRegister (void) |
Registration function for isdataat: keyword. More... | |
Implements isdataat keyword
Definition in file detect-isdataat.c.
#define PARSE_REGEX "^\\s*!?([^\\s,]+)\\s*(,\\s*relative)?\\s*(,\\s*rawbytes\\s*)?\\s*$" |
Regex for parsing our isdataat options.
Definition at line 54 of file detect-isdataat.c.
bool DetectAbsentValidateContentCallback | ( | Signature * | s, |
const SignatureInitDataBuffer * | b | ||
) |
Definition at line 117 of file detect-isdataat.c.
References DETECT_ABSENT, DETECT_CONTENT, DETECT_CONTENT_FAST_PATTERN, DetectContentData_::flags, SignatureInitDataBuffer_::head, SigMatch_::next, DetectAbsentData_::or_else, and SCLogError.
void DetectIsdataatFree | ( | DetectEngineCtx * | de_ctx, |
void * | ptr | ||
) |
this function will free memory associated with DetectIsdataatData
idad | pointer to DetectIsdataatData |
Definition at line 411 of file detect-isdataat.c.
References SCFree.
Referenced by DetectIsdataatRegister().
void DetectIsdataatRegister | ( | void | ) |
Registration function for isdataat: keyword.
Definition at line 156 of file detect-isdataat.c.
References SigTableElmt_::desc, DETECT_ISDATAAT, DetectIsdataatFree(), DetectIsdataatSetup(), SigTableElmt_::Free, SigTableElmt_::Match, SigTableElmt_::name, SigTableElmt_::RegisterTests, SigTableElmt_::Setup, sigmatch_table, and SigTableElmt_::url.
Referenced by SigTableSetup().
int DetectIsdataatSetup | ( | DetectEngineCtx * | de_ctx, |
Signature * | s, | ||
const char * | isdataatstr | ||
) |
This function is used to add the parsed isdataatdata into the current signature.
de_ctx | pointer to the Detection Engine Context |
s | pointer to the Current Signature |
isdataatstr | pointer to the user provided isdataat options |
0 | on Success |
-1 | on Failure |
Definition at line 311 of file detect-isdataat.c.
References offset.
Referenced by DetectIsdataatRegister().