suricata
detect-engine-frame.h
Go to the documentation of this file.
1 /* Copyright (C) 2021 Open Information Security Foundation
2  *
3  * You can copy, redistribute or modify this Program under the terms of
4  * the GNU General Public License version 2 as published by the Free
5  * Software Foundation.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * version 2 along with this program; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15  * 02110-1301, USA.
16  */
17 
18 /**
19  * \file
20  *
21  * \author Victor Julien <victor@inliniac.net>
22  *
23  */
24 
25 #include "app-layer-frames.h"
26 
28  const Frames *frames, const Frame *frame, const AppProto alproto, const uint32_t idx);
30  Flow *f, Packet *p, const Frames *frames, const Frame *frame, const uint32_t idx);
31 
33  const DetectBufferMpmRegistery *mpm_reg, int list_id);
35  const DetectEngineTransforms *transforms, Packet *p, const Frames *frames,
36  const Frame *frame, const int list_id, const uint32_t idx, const bool first);
38  const DetectEngineFrameInspectionEngine *engine, const Signature *s, Packet *p,
39  const Frames *frames, const Frame *frame, const uint32_t idx);
SigGroupHead_
Container for matching data for a signature group.
Definition: detect.h:1399
DetectEngineTransforms
Definition: detect.h:372
DetectRunFrameInspectRule
int DetectRunFrameInspectRule(ThreadVars *tv, DetectEngineThreadCtx *det_ctx, const Signature *s, Flow *f, Packet *p, const Frames *frames, const Frame *frame, const uint32_t idx)
Definition: detect-engine-frame.c:133
FrameStreamData::frame
const Frame * frame
Definition: detect-engine-frame.c:199
AppProto
uint16_t AppProto
Definition: app-layer-protos.h:80
InspectionBuffer
Definition: detect.h:338
FrameStreamData::list_id
int list_id
Definition: detect-engine-frame.c:200
Frame
Definition: app-layer-frames.h:40
Flow_
Flow data structure.
Definition: flow.h:353
DetectEngineCtx_
main detection engine ctx
Definition: detect.h:785
FrameStreamData::det_ctx
DetectEngineThreadCtx * det_ctx
Definition: detect-engine-frame.c:197
Frames
Definition: app-layer-frames.h:56
DetectBufferMpmRegistery_
one time registration of keywords at start up
Definition: detect.h:626
de_ctx
DetectEngineCtx * de_ctx
Definition: fuzz_siginit.c:17
FrameStreamData::idx
uint32_t idx
Definition: detect-engine-frame.c:201
DetectEngineThreadCtx_
Definition: detect.h:1034
ThreadVars_
Per thread variable structure.
Definition: threadvars.h:56
FrameStreamData::transforms
const DetectEngineTransforms * transforms
Definition: detect-engine-frame.c:198
Packet_
Definition: decode.h:433
DetectEngineFrameInspectionEngine
Definition: detect.h:468
DetectRunPrefilterFrame
void DetectRunPrefilterFrame(DetectEngineThreadCtx *det_ctx, const SigGroupHead *sgh, Packet *p, const Frames *frames, const Frame *frame, const AppProto alproto, const uint32_t idx)
Definition: detect-engine-frame.c:43
DetectEngineInspectFrameBufferGeneric
int DetectEngineInspectFrameBufferGeneric(DetectEngineThreadCtx *det_ctx, const DetectEngineFrameInspectionEngine *engine, const Signature *s, Packet *p, const Frames *frames, const Frame *frame, const uint32_t idx)
Do the content inspection & validation for a signature.
Definition: detect-engine-frame.c:366
app-layer-frames.h
tv
ThreadVars * tv
Definition: fuzz_decodepcapfile.c:31
DetectFrame2InspectBuffer
InspectionBuffer * DetectFrame2InspectBuffer(DetectEngineThreadCtx *det_ctx, const DetectEngineTransforms *transforms, Packet *p, const Frames *frames, const Frame *frame, const int list_id, const uint32_t idx, const bool first)
Definition: detect-engine-frame.c:276
Signature_
Signature container.
Definition: detect.h:540
PrefilterGenericMpmFrameRegister
int PrefilterGenericMpmFrameRegister(DetectEngineCtx *de_ctx, SigGroupHead *sgh, MpmCtx *mpm_ctx, const DetectBufferMpmRegistery *mpm_reg, int list_id)
Definition: detect-engine-frame.c:113
MpmCtx_
Definition: util-mpm.h:88