Go to the documentation of this file.
46 Flow *_f,
const uint8_t flow_flags,
47 void *txv,
const int list_id);
49 static void DetectTemplateBufferRegisterTests(
void);
51 static int g_template_buffer_id = 0;
60 if (
ConfGetNode(
"app-layer.protocols.template") == NULL) {
67 "Template content modifier to match on the template buffers";
71 DetectTemplateBufferRegisterTests;
96 SCLogDebug(
"Template application layer detect registered.");
123 Flow *_f,
const uint8_t flow_flags,
124 void *txv,
const int list_id)
129 const uint8_t *data = NULL;
130 uint32_t data_len = 0;
132 if (flow_flags & STREAM_TOSERVER) {
135 }
else if (flow_flags & STREAM_TOCLIENT) {
int DetectSignatureSetAppProto(Signature *s, AppProto alproto)
ConfNode * ConfGetNode(const char *name)
Get a ConfNode by name.
void DetectTemplateBufferRegister(void)
int PrefilterGenericMpmRegister(DetectEngineCtx *de_ctx, SigGroupHead *sgh, MpmCtx *mpm_ctx, const DetectBufferMpmRegistery *mpm_reg, int list_id)
main detection engine ctx
@ DETECT_AL_TEMPLATE_BUFFER
#define SIG_FLAG_TOCLIENT
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
InspectionBuffer * InspectionBufferGet(DetectEngineThreadCtx *det_ctx, const int list_id)
int DetectBufferTypeGetByName(const char *name)
#define SIG_FLAG_TOSERVER
uint32_t response_buffer_len
int DetectEngineInspectBufferGeneric(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, const DetectEngineAppInspectionEngine *engine, const Signature *s, Flow *f, uint8_t flags, void *alstate, void *txv, uint64_t tx_id)
Do the content inspection & validation for a signature.
void DetectAppLayerInspectEngineRegister2(const char *name, AppProto alproto, uint32_t dir, int progress, InspectEngineFuncPtr2 Callback2, InspectionBufferGetDataPtr GetData)
register inspect engine at start up time
SignatureInitData * init_data
int RunmodeIsUnittests(void)
uint8_t * response_buffer
void DetectAppLayerMpmRegister2(const char *name, int direction, int priority, int(*PrefilterRegister)(DetectEngineCtx *de_ctx, SigGroupHead *sgh, MpmCtx *mpm_ctx, const DetectBufferMpmRegistery *mpm_reg, int list_id), InspectionBufferGetDataPtr GetData, AppProto alproto, int tx_min_progress)
register a MPM engine
uint32_t request_buffer_len
void InspectionBufferApplyTransforms(InspectionBuffer *buffer, const DetectEngineTransforms *transforms)
SigTableElmt sigmatch_table[DETECT_TBLSIZE]
void InspectionBufferSetup(DetectEngineThreadCtx *det_ctx, const int list_id, InspectionBuffer *buffer, const uint8_t *data, const uint32_t data_len)
setup the buffer with our initial data
void(* RegisterTests)(void)