From: Victor Julien Date: Thu, 26 Jan 2023 11:00:14 +0000 (+0100) Subject: detect/frames: reduce scope of private function X-Git-Tag: suricata-7.0.0-rc1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a95934b5ee3d36f6b715e018790da373294b0057;p=thirdparty%2Fsuricata.git detect/frames: reduce scope of private function --- diff --git a/src/detect-engine-frame.c b/src/detect-engine-frame.c index 1046aede45..33d78ced7a 100644 --- a/src/detect-engine-frame.c +++ b/src/detect-engine-frame.c @@ -40,6 +40,10 @@ #include "util-validate.h" #include "util-print.h" +static 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); + void DetectRunPrefilterFrame(DetectEngineThreadCtx *det_ctx, const SigGroupHead *sgh, Packet *p, const Frames *frames, const Frame *frame, const AppProto alproto, const uint32_t idx) { @@ -300,7 +304,7 @@ static int FrameStreamDataFunc( return 1; // for now only the first chunk } -InspectionBuffer *DetectFrame2InspectBuffer(DetectEngineThreadCtx *det_ctx, +static 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) { diff --git a/src/detect-engine-frame.h b/src/detect-engine-frame.h index 82dc144ff2..9fe2385b15 100644 --- a/src/detect-engine-frame.h +++ b/src/detect-engine-frame.h @@ -31,9 +31,6 @@ int DetectRunFrameInspectRule(ThreadVars *tv, DetectEngineThreadCtx *det_ctx, co int PrefilterGenericMpmFrameRegister(DetectEngineCtx *de_ctx, SigGroupHead *sgh, MpmCtx *mpm_ctx, const DetectBufferMpmRegistery *mpm_reg, int list_id); -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); int DetectEngineInspectFrameBufferGeneric(DetectEngineThreadCtx *det_ctx, const DetectEngineFrameInspectionEngine *engine, const Signature *s, Packet *p, const Frames *frames, const Frame *frame, const uint32_t idx);