|
|
|
@ -301,7 +301,7 @@ void B2gFreePattern(MpmCtx *mpm_ctx, B2gPattern *p) {
|
|
|
|
* \param sid signature id (internal id)
|
|
|
|
* \param sid signature id (internal id)
|
|
|
|
* \param flags pattern MPM_PATTERN_* flags
|
|
|
|
* \param flags pattern MPM_PATTERN_* flags
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static inline int B2gAddPattern(MpmCtx *mpm_ctx, uint8_t *pat, uint16_t patlen, uint16_t offset, uint16_t depth, uint32_t pid, uint32_t sid, uint8_t flags) {
|
|
|
|
static int B2gAddPattern(MpmCtx *mpm_ctx, uint8_t *pat, uint16_t patlen, uint16_t offset, uint16_t depth, uint32_t pid, uint32_t sid, uint8_t flags) {
|
|
|
|
B2gCtx *ctx = (B2gCtx *)mpm_ctx->ctx;
|
|
|
|
B2gCtx *ctx = (B2gCtx *)mpm_ctx->ctx;
|
|
|
|
|
|
|
|
|
|
|
|
SCLogDebug("ctx %p len %"PRIu16" pid %" PRIu32, ctx, patlen, pid);
|
|
|
|
SCLogDebug("ctx %p len %"PRIu16" pid %" PRIu32, ctx, patlen, pid);
|
|
|
|
|