From 9e71ef4c3bc878f018cdd8fadfab5e33ada17fb6 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 13 Oct 2015 14:56:01 +0200 Subject: [PATCH] detect: remove signature pattern id reference --- src/detect-engine-mpm.c | 2 -- src/detect.h | 3 --- 2 files changed, 5 deletions(-) diff --git a/src/detect-engine-mpm.c b/src/detect-engine-mpm.c index 889f499353..7295813e0c 100644 --- a/src/detect-engine-mpm.c +++ b/src/detect-engine-mpm.c @@ -983,8 +983,6 @@ static void SetMpm(Signature *s, SigMatch *mpm_sm) cd->flags |= DETECT_CONTENT_NO_DOUBLE_INSPECTION_REQUIRED; } } - s->mpm_pattern_id_div_8 = cd->id / 8; - s->mpm_pattern_id_mod_8 = 1 << (cd->id % 8); s->mpm_sm = mpm_sm; return; } diff --git a/src/detect.h b/src/detect.h index 6f41f72478..f728e9bd8b 100644 --- a/src/detect.h +++ b/src/detect.h @@ -360,9 +360,6 @@ typedef struct Signature_ { uint16_t dsize_low; uint16_t dsize_high; - uint16_t mpm_pattern_id_div_8; - uint8_t mpm_pattern_id_mod_8; - SignatureMask mask; SigIntId num; /**< signature number, internal id */ -- 2.47.2