~ubuntu-branches/ubuntu/precise/suricata/precise-proposed

« back to all changes in this revision

Viewing changes to src/util-mpm.h

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Chifflier
  • Date: 2010-06-19 17:39:14 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100619173914-5vkjfgz24mbia29z
Tags: 0.9.2-1
ImportedĀ UpstreamĀ versionĀ 0.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
 *         thread has this and passes a pointer to it to the pattern matcher.
80
80
 *         The actual pattern matcher will fill the structure. */
81
81
typedef struct PatternMatcherQueue_ {
82
 
    uint32_t *pattern_id_array;     /** array with internal sig id's that had a
 
82
    uint32_t *pattern_id_array;     /** array with pattern id's that had a
83
83
                                        pattern match. These will be inspected
84
84
                                        futher by the detection engine. */
85
85
    uint32_t pattern_id_array_cnt;
 
86
    uint32_t pattern_id_array_size; /**< size in bytes */
 
87
 
86
88
    uint8_t *pattern_id_bitarray;   /** bitarray with pattern id matches */
 
89
    uint32_t pattern_id_bitarray_size; /**< size in bytes */
87
90
} PatternMatcherQueue;
88
91
 
89
92
typedef struct MpmCtx_ {
108
111
#define MPM_PATTERN_FLAG_DEPTH      0x04
109
112
/** pattern has an offset setting */
110
113
#define MPM_PATTERN_FLAG_OFFSET     0x08
 
114
/** one byte pattern (used in b2g) */
 
115
#define MPM_PATTERN_ONE_BYTE        0x10
111
116
 
112
117
typedef struct MpmTableElmt_ {
113
118
    char *name;
142
147
MpmTableElmt mpm_table[MPM_TABLE_SIZE];
143
148
 
144
149
int PmqSetup(PatternMatcherQueue *, uint32_t, uint32_t);
 
150
void PmqMerge(PatternMatcherQueue *src, PatternMatcherQueue *dst);
145
151
void PmqReset(PatternMatcherQueue *);
146
152
void PmqCleanup(PatternMatcherQueue *);
147
153
void PmqFree(PatternMatcherQueue *);