|
suricata
|
Go to the source code of this file.
Macros | |
| #define | DETECT_CI_FLAGS_START BIT_U8(0) |
| #define | DETECT_CI_FLAGS_END BIT_U8(1) |
| #define | DETECT_CI_FLAGS_DCE_LE BIT_U8(2) |
| #define | DETECT_CI_FLAGS_DCE_BE BIT_U8(3) |
| #define | DETECT_CI_FLAGS_SINGLE (DETECT_CI_FLAGS_START|DETECT_CI_FLAGS_END) |
Functions | |
| bool | DetectEngineContentInspection (DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, const Signature *s, const SigMatchData *smd, Packet *p, Flow *f, const uint8_t *buffer, const uint32_t buffer_len, const uint64_t stream_start_offset, const uint8_t flags, const enum DetectContentInspectionType inspection_mode) |
| wrapper around DetectEngineContentInspectionInternal to return true/false only More... | |
| bool | DetectEngineContentInspectionBuffer (DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, const Signature *s, const SigMatchData *smd, Packet *p, Flow *f, const InspectionBuffer *b, const enum DetectContentInspectionType inspection_mode) |
| content inspect entry for inspection buffers More... | |
| bool | DetectContentInspectionMatchOnAbsentBuffer (const SigMatchData *smd) |
| tells if we should match on absent buffer, because there is an absent keyword being used More... | |
| void | DetectEngineContentInspectionRegisterTests (void) |
Definition in file detect-engine-content-inspection.h.
| #define DETECT_CI_FLAGS_DCE_BE BIT_U8(3) |
DCERPC record in big endian
Definition at line 46 of file detect-engine-content-inspection.h.
| #define DETECT_CI_FLAGS_DCE_LE BIT_U8(2) |
DCERPC record in little endian
Definition at line 45 of file detect-engine-content-inspection.h.
| #define DETECT_CI_FLAGS_END BIT_U8(1) |
indication that current buffer is the end of the data
Definition at line 44 of file detect-engine-content-inspection.h.
| #define DETECT_CI_FLAGS_SINGLE (DETECT_CI_FLAGS_START|DETECT_CI_FLAGS_END) |
buffer is a single, non-streaming, buffer. Data sent to the content inspection function contains both start and end of the data.
Definition at line 50 of file detect-engine-content-inspection.h.
| #define DETECT_CI_FLAGS_START BIT_U8(0) |
indication that current buffer is the start of the data
Definition at line 42 of file detect-engine-content-inspection.h.
indication to content engine what type of data we're inspecting
Definition at line 31 of file detect-engine-content-inspection.h.
| bool DetectContentInspectionMatchOnAbsentBuffer | ( | const SigMatchData * | smd | ) |
tells if we should match on absent buffer, because there is an absent keyword being used
| smd | array of content inspection matches |
| bool | true to match on absent buffer, false otherwise |
Definition at line 793 of file detect-engine-content-inspection.c.
References DETECT_ABSENT, SigMatchData_::is_last, and SigMatchData_::type.
| bool DetectEngineContentInspection | ( | DetectEngineCtx * | de_ctx, |
| DetectEngineThreadCtx * | det_ctx, | ||
| const Signature * | s, | ||
| const SigMatchData * | smd, | ||
| Packet * | p, | ||
| Flow * | f, | ||
| const uint8_t * | buffer, | ||
| const uint32_t | buffer_len, | ||
| const uint64_t | stream_start_offset, | ||
| const uint8_t | flags, | ||
| const enum DetectContentInspectionType | inspection_mode | ||
| ) |
wrapper around DetectEngineContentInspectionInternal to return true/false only
| smd | sigmatches to evaluate |
Definition at line 749 of file detect-engine-content-inspection.c.
References DetectEngineThreadCtx_::buffer_offset, ctx, de_ctx, and DetectEngineCtx_::inspection_recursion_limit.
Referenced by DetectEngineInspectBufferGeneric(), DetectEngineInspectBufferSingle(), DetectEngineInspectPacketPayload(), and DetectEngineInspectPktBufferGeneric().

| bool DetectEngineContentInspectionBuffer | ( | DetectEngineCtx * | de_ctx, |
| DetectEngineThreadCtx * | det_ctx, | ||
| const Signature * | s, | ||
| const SigMatchData * | smd, | ||
| Packet * | p, | ||
| Flow * | f, | ||
| const InspectionBuffer * | b, | ||
| const enum DetectContentInspectionType | inspection_mode | ||
| ) |
content inspect entry for inspection buffers
| de_ctx | detection engine |
| det_ctx | detect engine thread ctx |
| s | signature being inspected |
| smd | array of content inspection matches |
| p | packet |
| f | flow |
| b | inspection buffer to inspect |
| inspection_mode | inspection mode to use |
| bool | true if smd matched the buffer b, false otherwise |
content inspect entry for inspection buffers
| smd | sigmatches to evaluate |
Definition at line 773 of file detect-engine-content-inspection.c.
References DetectEngineThreadCtx_::buffer_offset, ctx, de_ctx, and DetectEngineCtx_::inspection_recursion_limit.
Referenced by DetectEngineInspectMultiBufferGeneric().

| void DetectEngineContentInspectionRegisterTests | ( | void | ) |
Definition at line 318 of file detect-engine-content-inspection.c.
References UtRegisterTest().
