/**
* \brief App layer protocol parser context.
*/
-typedef struct AppLayerParserpCtx_
+typedef struct AppLayerParserProtoCtx_
{
/* 0 - to_server, 1 - to_client. */
int (*Parser[2])(Flow *f, void *protocol_state,
#ifdef UNITTESTS
void (*RegisterUnittests)(void);
#endif
-} AppLayerParserpCtx;
+} AppLayerParserProtoCtx;
typedef struct AppLayerParserCtx_ {
- AppLayerParserpCtx ctxs[FLOW_PROTO_MAX][ALPROTO_MAX];
+ AppLayerParserProtoCtx ctxs[FLOW_PROTO_MAX][ALPROTO_MAX];
} AppLayerParserCtx;
typedef struct AppLayerParserParserState_ {
AppLayerParserParserState *parser_state_store = pstate;
uint64_t inspect = 0, log = 0;
uint64_t min;
- AppLayerParserpCtx *ctx = &alp_ctx.ctxs[FlowGetProtoMapping(ipproto)][alproto];
+ AppLayerParserProtoCtx *ctx = &alp_ctx.ctxs[FlowGetProtoMapping(ipproto)][alproto];
if (ctx->StateTransactionFree == NULL)
goto end;
SCEnter();
AppLayerParserParserState *pstate = NULL;
- AppLayerParserpCtx *p = &alp_ctx.ctxs[FlowGetProtoMapping(f->proto)][alproto];
+ AppLayerParserProtoCtx *p = &alp_ctx.ctxs[FlowGetProtoMapping(f->proto)][alproto];
TcpSession *ssn = NULL;
void *alstate = NULL;
AppLayerParserThreadCtx *alp_tctx = (AppLayerParserThreadCtx *)tctx;
{
SCEnter();
- AppLayerParserpCtx *ctx = &alp_ctx.ctxs[FlowGetProtoMapping(ipproto)][alproto];
+ AppLayerParserProtoCtx *ctx = &alp_ctx.ctxs[FlowGetProtoMapping(ipproto)][alproto];
if (ctx->StateFree != NULL && alstate != NULL)
ctx->StateFree(alstate);
int ip;
uint16_t alproto;
- AppLayerParserpCtx *ctx;
+ AppLayerParserProtoCtx *ctx;
for (ip = 0; ip < FLOW_PROTO_DEFAULT; ip++) {
for (alproto = 0; alproto < ALPROTO_MAX; alproto++) {