From 866b3a1c5db17c9c07535b4897c1a38891297305 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 30 Nov 2013 12:57:34 +0100 Subject: [PATCH] content: reorder DetectContentData member, shrinking the struct from 64 to 48 bytes. --- src/detect-content.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/detect-content.h b/src/detect-content.h index 2e121b64a6..c5c47263d6 100644 --- a/src/detect-content.h +++ b/src/detect-content.h @@ -66,6 +66,9 @@ typedef struct DetectContentData_ { uint8_t *content; uint8_t content_len; + uint8_t replace_len; + /* for chopped fast pattern, the length */ + uint16_t fp_chop_len; /* would want to move PatIntId here and flags down to remove the padding * gap, but I think the first four members was used as a template for * casting. \todo check this and fix it if posssible */ @@ -73,17 +76,14 @@ typedef struct DetectContentData_ { PatIntId id; uint16_t depth; uint16_t offset; + /* for chopped fast pattern, the offset */ + uint16_t fp_chop_offset; int32_t distance; int32_t within; /* Boyer Moore context (for spm search) */ BmCtx *bm_ctx; - /* for chopped fast pattern, the offset */ - uint16_t fp_chop_offset; - /* for chopped fast pattern, the length */ - uint16_t fp_chop_len; /* pointer to replacement data */ uint8_t *replace; - uint8_t replace_len; } DetectContentData; /* prototypes */