75 (void)CreateSpace(td, 1);
93 SCLogDebug(
"hdrnames->buffers[%d].size %u (%u)",
109 hdrnames->
tick = tick;
114 if (size >= SHRT_MAX)
144 while ((buf->
size + extra) < (size + buf->
len)) {
147 SCLogDebug(
"adding %"PRIuMAX
" to the buffer", (uintmax_t)extra);
171 Reset(hdr_td, det_ctx->
ticker);
172 *ret_hdr_td = hdr_td;
177 BUG_ON(base_inspect_id > tx_id);
179 uint64_t txs = (tx_id - base_inspect_id) + 1;
180 if (CreateSpace(hdr_td, txs) < 0)
183 index = (tx_id - base_inspect_id);
197 if (CreateSpace(hdr_td, txs) < 0)
void HttpHeaderThreadDataFree(void *data)
int HttpHeaderExpandBuffer(HttpHeaderThreadData *td, HttpHeaderBuffer *buf, uint32_t size)
uint64_t AppLayerParserGetTransactionInspectId(AppLayerParserState *pstate, uint8_t direction)
Data structures and function prototypes for keeping state for the detection engine.
HttpHeaderBuffer * HttpHeaderGetBufferSpaceForTXID(DetectEngineThreadCtx *det_ctx, Flow *f, uint8_t flags, uint64_t tx_id, const int keyword_id, HttpHeaderThreadData **ret_hdr_td)
void * HttpHeaderThreadDataInit(void *data)
void * DetectThreadCtxGetGlobalKeywordThreadCtx(DetectEngineThreadCtx *det_ctx, int id)
Retrieve thread local keyword ctx by id.
AppLayerParserState * alparser