]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/frames: reduce scope of private function
authorVictor Julien <vjulien@oisf.net>
Thu, 26 Jan 2023 11:00:14 +0000 (12:00 +0100)
committerVictor Julien <vjulien@oisf.net>
Sat, 28 Jan 2023 11:46:41 +0000 (12:46 +0100)
src/detect-engine-frame.c
src/detect-engine-frame.h

index 1046aede45f7fc288003522afac39886da76e3c1..33d78ced7a2d31076729682f9e1212efcd413794 100644 (file)
 #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)
 {
index 82dc144ff2cb2b8645593a93f077fcac0f727826..9fe2385b150fcf859c946a4608c1b3c113ba335c 100644 (file)
@@ -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);