From: Nancy Enos Date: Mon, 28 Oct 2024 11:22:38 +0000 (+0300) Subject: misc: Remove duplicate function declarations X-Git-Tag: suricata-8.0.0-beta1~743 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56e10fd3b298200cbf210bfe957da2eaa6af93ac;p=thirdparty%2Fsuricata.git misc: Remove duplicate function declarations Ticket: #7297 --- diff --git a/src/decode.h b/src/decode.h index 510a7960e5..f36c41a842 100644 --- a/src/decode.h +++ b/src/decode.h @@ -103,8 +103,6 @@ struct PktPool_; /* declare these here as they are called from the * PACKET_RECYCLE and PACKET_CLEANUP macro's. */ typedef struct AppLayerDecoderEvents_ AppLayerDecoderEvents; -void AppLayerDecoderEventsResetEvents(AppLayerDecoderEvents *events); -void AppLayerDecoderEventsFreeEvents(AppLayerDecoderEvents **events); /* Address */ typedef struct Address_ { diff --git a/src/detect-engine-frame.h b/src/detect-engine-frame.h index a529e55c4d..062d57d2b3 100644 --- a/src/detect-engine-frame.h +++ b/src/detect-engine-frame.h @@ -29,8 +29,6 @@ void DetectRunPrefilterFrame(DetectEngineThreadCtx *det_ctx, const SigGroupHead bool DetectRunFrameInspectRule(ThreadVars *tv, DetectEngineThreadCtx *det_ctx, const Signature *s, Flow *f, Packet *p, const Frames *frames, const Frame *frame); -int PrefilterGenericMpmFrameRegister(DetectEngineCtx *de_ctx, SigGroupHead *sgh, MpmCtx *mpm_ctx, - const DetectBufferMpmRegistry *mpm_reg, int list_id); int DetectEngineInspectFrameBufferGeneric(DetectEngineThreadCtx *det_ctx, const DetectEngineFrameInspectionEngine *engine, const Signature *s, Packet *p, const Frames *frames, const Frame *frame); diff --git a/src/detect-engine-mpm.h b/src/detect-engine-mpm.h index 1619541404..10bdb86f5b 100644 --- a/src/detect-engine-mpm.h +++ b/src/detect-engine-mpm.h @@ -113,8 +113,6 @@ void DetectEngineFrameMpmRegister(DetectEngineCtx *de_ctx, const char *name, int const DetectBufferMpmRegistry *mpm_reg, int list_id), AppProto alproto, uint8_t type); -int PrefilterGenericMpmPktRegister(DetectEngineCtx *de_ctx, SigGroupHead *sgh, MpmCtx *mpm_ctx, - const DetectBufferMpmRegistry *mpm_reg, int list_id); int PrefilterGenericMpmFrameRegister(DetectEngineCtx *de_ctx, SigGroupHead *sgh, MpmCtx *mpm_ctx, const DetectBufferMpmRegistry *mpm_reg, int list_id); diff --git a/src/detect-icmpv4hdr.c b/src/detect-icmpv4hdr.c index 259fbdc2ec..dbda7c6f14 100644 --- a/src/detect-icmpv4hdr.c +++ b/src/detect-icmpv4hdr.c @@ -28,6 +28,7 @@ #include "detect-engine.h" #include "detect-engine-mpm.h" #include "detect-icmpv4hdr.h" +#include "detect-engine-prefilter.h" /* prototypes */ static int DetectIcmpv4HdrSetup(DetectEngineCtx *, Signature *, const char *); diff --git a/src/packet.c b/src/packet.c index bd63de7568..cb6dcf6183 100644 --- a/src/packet.c +++ b/src/packet.c @@ -22,6 +22,7 @@ #include "util-profiling.h" #include "util-validate.h" #include "action-globals.h" +#include "app-layer-events.h" /** \brief issue drop action *