struct AppLayerParserState_ {
uint8_t flags;
- /* State version, incremented for each update. Can wrap around. */
- uint8_t version;
/* Indicates the current transaction that is being inspected.
* We have a var per direction. */
uint64_t inspect_id[2];
SCReturnPtr(ptr, "AppLayerDecoderEvents *");
}
-uint16_t AppLayerParserGetStateVersion(AppLayerParserState *pstate)
-{
- SCEnter();
- SCReturnCT((pstate == NULL) ? 0 : pstate->version, "uint8_t");
-}
-
FileContainer *AppLayerParserGetFiles(uint8_t ipproto, AppProto alproto,
void *alstate, uint8_t direction)
{
if (pstate == NULL)
goto error;
}
- pstate->version++;
- SCLogDebug("app layer parser state version incremented to %"PRIu8,
- pstate->version);
if (flags & STREAM_EOF)
AppLayerParserStateSetFlag(pstate, APP_LAYER_PARSER_EOF);
goto end;
AppLayerParserStateSetFlag(pstate, APP_LAYER_PARSER_EOF);
- /* increase version so we will inspect it one more time
- * with the EOF flags now set */
- pstate->version++;
end:
SCReturn;
"p->inspect_id[0](%"PRIu64"), "
"p->inspect_id[1](%"PRIu64"), "
"p->log_id(%"PRIu64"), "
- "p->version(%"PRIu8"), "
"p->decoder_events(%p).",
pstate, p->inspect_id[0], p->inspect_id[1], p->log_id,
- p->version, p->decoder_events);
+ p->decoder_events);
SCReturn;
}
void AppLayerParserSetDecoderEvents(AppLayerParserState *pstate, AppLayerDecoderEvents *devents);
AppLayerDecoderEvents *AppLayerParserGetEventsByTx(uint8_t ipproto, AppProto alproto, void *alstate,
uint64_t tx_id);
-uint16_t AppLayerParserGetStateVersion(AppLayerParserState *pstate);
FileContainer *AppLayerParserGetFiles(uint8_t ipproto, AppProto alproto,
void *alstate, uint8_t direction);
int AppLayerParserGetStateProgress(uint8_t ipproto, AppProto alproto,