|
|
|
|
@ -112,6 +112,12 @@ void DetectRunPrefilterTx(DetectEngineThreadCtx *det_ctx,
|
|
|
|
|
SCLogDebug("%" PRIu64 ": engine %p for %s progress %u sub_state %u tx %u",
|
|
|
|
|
PcapPacketCntGet(p), engine, AppProtoToString(engine->alproto),
|
|
|
|
|
engine->ctx.app.tx_min_progress, engine->ctx.app.sub_state, tx->tx_type);
|
|
|
|
|
|
|
|
|
|
DEBUG_VALIDATE_BUG_ON(
|
|
|
|
|
AppLayerParserSupportsSubStates(engine->alproto) && engine->ctx.app.sub_state == 0);
|
|
|
|
|
DEBUG_VALIDATE_BUG_ON(!AppLayerParserSupportsSubStates(engine->alproto) &&
|
|
|
|
|
engine->ctx.app.sub_state != 0);
|
|
|
|
|
|
|
|
|
|
if (engine->alproto != ALPROTO_UNKNOWN && engine->ctx.app.sub_state != tx->tx_type) {
|
|
|
|
|
SCLogDebug("%" PRIu64 ": engine %p sub_state %u mismatch with tx %u",
|
|
|
|
|
PcapPacketCntGet(p), engine, engine->ctx.app.sub_state, tx->tx_type);
|
|
|
|
|
|