Minor reshuffling of Signature struct.

pull/343/head
Victor Julien 14 years ago
parent eb11280888
commit 9ea4d36f7a

@ -413,6 +413,11 @@ typedef struct Signature_ {
/** classification id **/ /** classification id **/
uint8_t class; uint8_t class;
#ifdef PROFILING
uint16_t profiling_id;
#endif
uint32_t gid; /**< generator id */ uint32_t gid; /**< generator id */
/** netblocks and hosts specified at the sid, in CIDR format */ /** netblocks and hosts specified at the sid, in CIDR format */
@ -422,27 +427,20 @@ typedef struct Signature_ {
int prio; int prio;
/* holds all sm lists */
struct SigMatch_ *sm_lists[DETECT_SM_LIST_MAX];
/* holds all sm lists' tails */
struct SigMatch_ *sm_lists_tail[DETECT_SM_LIST_MAX];
SigMatch *filestore_sm;
char *msg; char *msg;
/** classification message */ /** classification message */
char *class_msg; char *class_msg;
/** Reference */ /** Reference */
DetectReference *references; DetectReference *references;
/* Be careful, this pointer is only valid while parsing the sig,
* to warn the user about any possible problem */
char *sig_str;
#ifdef PROFILING
uint16_t profiling_id;
#endif
/* holds all sm lists */
struct SigMatch_ *sm_lists[DETECT_SM_LIST_MAX];
/* holds all sm lists' tails */
struct SigMatch_ *sm_lists_tail[DETECT_SM_LIST_MAX];
/** address settings for this signature */ /** address settings for this signature */
DetectAddressHead src, dst; DetectAddressHead src, dst;
@ -450,15 +448,17 @@ typedef struct Signature_ {
uint32_t init_flags; uint32_t init_flags;
/** number of sigmatches in the match and pmatch list */ /** number of sigmatches in the match and pmatch list */
uint16_t sm_cnt; uint16_t sm_cnt;
/* used at init to determine max dsize */
SigMatch *dsize_sm; SigMatch *dsize_sm;
SigMatch *filestore_sm;
/* the fast pattern added from this signature */ /* the fast pattern added from this signature */
SigMatch *mpm_sm; SigMatch *mpm_sm;
/* helper for init phase */ /* helper for init phase */
uint16_t mpm_content_maxlen; uint16_t mpm_content_maxlen;
uint16_t mpm_uricontent_maxlen; uint16_t mpm_uricontent_maxlen;
/* Be careful, this pointer is only valid while parsing the sig,
* to warn the user about any possible problem */
char *sig_str;
/** ptr to the next sig in the list */ /** ptr to the next sig in the list */
struct Signature_ *next; struct Signature_ *next;

Loading…
Cancel
Save