]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
file: use u32 file id everywhere
authorVictor Julien <victor@inliniac.net>
Mon, 19 Nov 2018 21:00:33 +0000 (22:00 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 19 Nov 2018 21:00:33 +0000 (22:00 +0100)
src/detect-filestore.c
src/detect.h

index 221e8595d4765e6c3007afe3c5f3195c8c3a0307..5c474927c55336d297f3d19be76c6ab113ceabbf 100644 (file)
@@ -89,8 +89,8 @@ void DetectFilestoreRegister(void)
 /**
  *  \brief apply the post match filestore with options
  */
-static int FilestorePostMatchWithOptions(Packet *p, Flow *f, const DetectFilestoreData *filestore, FileContainer *fc,
-        uint16_t file_id, uint16_t tx_id)
+static int FilestorePostMatchWithOptions(Packet *p, Flow *f, const DetectFilestoreData *filestore,
+        FileContainer *fc, uint32_t file_id, uint64_t tx_id)
 {
     if (filestore == NULL) {
         SCReturnInt(0);
@@ -252,7 +252,7 @@ int DetectFilestorePostMatch(ThreadVars *t, DetectEngineThreadCtx *det_ctx, Pack
 static int DetectFilestoreMatch (ThreadVars *t, DetectEngineThreadCtx *det_ctx, Flow *f,
         uint8_t flags, File *file, const Signature *s, const SigMatchCtx *m)
 {
-    uint16_t file_id = 0;
+    uint32_t file_id = 0;
 
     SCEnter();
 
index 7303da91bfc155ae74e2eefa893e34eaeb702bde..1ebeac49d70e7cdfcfd508be7ef0dd24119a8272 100644 (file)
@@ -1074,7 +1074,7 @@ typedef struct DetectEngineThreadCtx_ {
      * full signature matches, these are processed by a post-match filestore
      * function to finalize the store. */
     struct {
-        uint16_t file_id;
+        uint32_t file_id;
         uint64_t tx_id;
     } filestore[DETECT_FILESTORE_MAX];