static HttpHeaderThreadDataConfig g_td_config = { BUFFER_TX_STEP, BUFFER_SIZE_STEP };
static uint8_t *GetBufferForTX(htp_tx_t *tx, uint64_t tx_id,
- DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx,
- Flow *f, HtpState *htp_state, uint8_t flags,
- uint32_t *buffer_len)
+ DetectEngineThreadCtx *det_ctx,
+ Flow *f, uint8_t flags, uint32_t *buffer_len)
{
*buffer_len = 0;
if (tx->request_headers == NULL)
return;
- HtpState *htp_state = f->alstate;
uint32_t buffer_len = 0;
const uint8_t *buffer = GetBufferForTX(tx, idx,
- NULL, det_ctx, f, htp_state,
- flags, &buffer_len);
+ det_ctx, f, flags, &buffer_len);
if (buffer_len >= mpm_ctx->minlen) {
(void)mpm_table[mpm_ctx->mpm_type].Search(mpm_ctx,
if (htud && !htud->request_has_trailers)
return;
- HtpState *htp_state = f->alstate;
uint32_t buffer_len = 0;
const uint8_t *buffer = GetBufferForTX(tx, idx,
- NULL, det_ctx, f, htp_state,
- flags, &buffer_len);
+ det_ctx, f, flags, &buffer_len);
if (buffer_len >= mpm_ctx->minlen) {
(void)mpm_table[mpm_ctx->mpm_type].Search(mpm_ctx,
if (tx->response_headers == NULL)
return;
- HtpState *htp_state = f->alstate;
uint32_t buffer_len = 0;
- const uint8_t *buffer = GetBufferForTX(tx, idx,
- NULL, det_ctx,
- f, htp_state,
- flags,
- &buffer_len);
+ const uint8_t *buffer = GetBufferForTX(tx, idx, det_ctx,
+ f, flags, &buffer_len);
if (buffer_len >= mpm_ctx->minlen) {
(void)mpm_table[mpm_ctx->mpm_type].Search(mpm_ctx,
if (htud && !htud->response_has_trailers)
return;
- HtpState *htp_state = f->alstate;
uint32_t buffer_len = 0;
- const uint8_t *buffer = GetBufferForTX(tx, idx,
- NULL, det_ctx,
- f, htp_state,
- flags,
- &buffer_len);
+ const uint8_t *buffer = GetBufferForTX(tx, idx, det_ctx,
+ f, flags, &buffer_len);
if (buffer_len >= mpm_ctx->minlen) {
(void)mpm_table[mpm_ctx->mpm_type].Search(mpm_ctx,
const Signature *s, const SigMatchData *smd,
Flow *f, uint8_t flags, void *alstate, void *tx, uint64_t tx_id)
{
- HtpState *htp_state = (HtpState *)alstate;
uint32_t buffer_len = 0;
- uint8_t *buffer = GetBufferForTX(tx, tx_id, de_ctx, det_ctx,
- f, htp_state,
- flags, &buffer_len);
+ uint8_t *buffer = GetBufferForTX(tx, tx_id, det_ctx,
+ f, flags, &buffer_len);
if (buffer_len == 0)
goto end;