|
|
|
|
@ -1564,12 +1564,12 @@ static int DetectRunTxInspectRule(ThreadVars *tv, DetectEngineCtx *de_ctx,
|
|
|
|
|
static DetectTransaction GetDetectTx(const uint8_t ipproto, const AppProto alproto,
|
|
|
|
|
const uint64_t tx_id, void *tx_ptr, const int tx_end_state, const uint8_t flow_flags)
|
|
|
|
|
{
|
|
|
|
|
DEBUG_VALIDATE_BUG_ON(tx_end_state >= 48);
|
|
|
|
|
DEBUG_VALIDATE_BUG_ON(tx_end_state >= APP_LAYER_MAX_PROGRESS);
|
|
|
|
|
|
|
|
|
|
AppLayerTxData *txd = AppLayerParserGetTxData(ipproto, alproto, tx_ptr);
|
|
|
|
|
const uint8_t tx_progress =
|
|
|
|
|
(uint8_t)AppLayerParserGetStateProgress(ipproto, alproto, tx_ptr, flow_flags);
|
|
|
|
|
DEBUG_VALIDATE_BUG_ON(tx_progress >= 48);
|
|
|
|
|
DEBUG_VALIDATE_BUG_ON(tx_progress >= APP_LAYER_MAX_PROGRESS);
|
|
|
|
|
|
|
|
|
|
const uint8_t e_tx_end_state = txd->tx_type == 0 ? (uint8_t)tx_end_state
|
|
|
|
|
: (flow_flags & STREAM_TOSERVER) ? txd->tx_type_eop_ts
|
|
|
|
|
|