file: use u32 file id everywhere

pull/3553/head
Victor Julien 8 years ago
parent 59d526481c
commit 16100e592d

@ -89,8 +89,8 @@ void DetectFilestoreRegister(void)
/** /**
* \brief apply the post match filestore with options * \brief apply the post match filestore with options
*/ */
static int FilestorePostMatchWithOptions(Packet *p, Flow *f, const DetectFilestoreData *filestore, FileContainer *fc, static int FilestorePostMatchWithOptions(Packet *p, Flow *f, const DetectFilestoreData *filestore,
uint16_t file_id, uint16_t tx_id) FileContainer *fc, uint32_t file_id, uint64_t tx_id)
{ {
if (filestore == NULL) { if (filestore == NULL) {
SCReturnInt(0); SCReturnInt(0);
@ -252,7 +252,7 @@ int DetectFilestorePostMatch(ThreadVars *t, DetectEngineThreadCtx *det_ctx, Pack
static int DetectFilestoreMatch (ThreadVars *t, DetectEngineThreadCtx *det_ctx, Flow *f, static int DetectFilestoreMatch (ThreadVars *t, DetectEngineThreadCtx *det_ctx, Flow *f,
uint8_t flags, File *file, const Signature *s, const SigMatchCtx *m) uint8_t flags, File *file, const Signature *s, const SigMatchCtx *m)
{ {
uint16_t file_id = 0; uint32_t file_id = 0;
SCEnter(); SCEnter();

@ -1074,7 +1074,7 @@ typedef struct DetectEngineThreadCtx_ {
* full signature matches, these are processed by a post-match filestore * full signature matches, these are processed by a post-match filestore
* function to finalize the store. */ * function to finalize the store. */
struct { struct {
uint16_t file_id; uint32_t file_id;
uint64_t tx_id; uint64_t tx_id;
} filestore[DETECT_FILESTORE_MAX]; } filestore[DETECT_FILESTORE_MAX];

Loading…
Cancel
Save