]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
mpm: consify packet/stream search
authorVictor Julien <victor@inliniac.net>
Mon, 26 Oct 2015 16:04:47 +0000 (17:04 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 5 Apr 2016 07:37:41 +0000 (09:37 +0200)
src/detect-engine-payload.c

index f5cd077c6106ac1dd065870b44b9c9ff91ebfe5f..d1c0924d051281d50ee3c15097922f6db1fe5fb6 100644 (file)
@@ -45,7 +45,7 @@
 #include "util-mpm-ac.h"
 
 uint32_t PacketPatternSearchWithStreamCtx(DetectEngineThreadCtx *det_ctx,
-                                         Packet *p)
+                                          const Packet *p)
 {
     SCEnter();
 
@@ -73,8 +73,8 @@ uint32_t PacketPatternSearchWithStreamCtx(DetectEngineThreadCtx *det_ctx,
  *
  *  \retval ret number of matches
  */
-uint32_t StreamPatternSearch(DetectEngineThreadCtx *det_ctx, Packet *p,
-                             StreamMsg *smsg, uint8_t flags)
+uint32_t StreamPatternSearch(DetectEngineThreadCtx *det_ctx, const Packet *p,
+                             const StreamMsg *smsg, const uint8_t flags)
 {
     SCEnter();