/***** Protocol Retrieval *****/
-AppProto AppLayerProtoDetectGetProto(void *tctx,
+AppProto AppLayerProtoDetectGetProto(AppLayerProtoDetectThreadCtx *tctx,
Flow *f,
uint8_t *buf, uint32_t buflen,
uint8_t ipproto, uint8_t direction)
SCReturnInt(enabled);
}
-void *AppLayerProtoDetectGetCtxThread(void)
+AppLayerProtoDetectThreadCtx *AppLayerProtoDetectGetCtxThread(void)
{
SCEnter();
AppLayerProtoDetectDestroyCtxThread(alpd_tctx);
alpd_tctx = NULL;
end:
- SCReturnPtr(alpd_tctx, "void *");
+ SCReturnPtr(alpd_tctx, "AppLayerProtoDetectThreadCtx");
}
-void AppLayerProtoDetectDestroyCtxThread(void *tctx)
+void AppLayerProtoDetectDestroyCtxThread(AppLayerProtoDetectThreadCtx *alpd_tctx)
{
SCEnter();
- AppLayerProtoDetectThreadCtx *alpd_tctx = (AppLayerProtoDetectThreadCtx *)tctx;
MpmCtx *mpm_ctx;
MpmThreadCtx *mpm_tctx;
int ipproto_map, dir;
int r = 0;
Flow f;
uint16_t pm_results[ALPROTO_MAX];
- void *alpd_tctx;
+ AppLayerProtoDetectThreadCtx *alpd_tctx;
memset(pm_results, 0, sizeof(pm_results));
int r = 0;
Flow f;
uint16_t pm_results[ALPROTO_MAX];
- void *alpd_tctx;
+ AppLayerProtoDetectThreadCtx *alpd_tctx;
memset(pm_results, 0, sizeof(pm_results));
int r = 0;
Flow f;
uint16_t pm_results[ALPROTO_MAX];
- void *alpd_tctx;
+ AppLayerProtoDetectThreadCtx *alpd_tctx;
memset(pm_results, 0, sizeof(pm_results));
int r = 0;
Flow f;
uint16_t pm_results[ALPROTO_MAX];
- void *alpd_tctx;
+ AppLayerProtoDetectThreadCtx *alpd_tctx;
buf = "HTTP";
AppLayerProtoDetectPMRegisterPatternCS(IPPROTO_TCP, ALPROTO_HTTP, buf, 4, 0, STREAM_TOCLIENT);
int r = 0;
Flow f;
uint16_t pm_results[ALPROTO_MAX];
- void *alpd_tctx;
+ AppLayerProtoDetectThreadCtx *alpd_tctx;
memset(pm_results, 0, sizeof(pm_results));
int r = 0;
Flow f;
uint16_t pm_results[ALPROTO_MAX];
- void *alpd_tctx;
+ AppLayerProtoDetectThreadCtx *alpd_tctx;
memset(pm_results, 0, sizeof(pm_results));
int r = 0;
Flow f;
uint16_t pm_results[ALPROTO_MAX];
- void *alpd_tctx;
+ AppLayerProtoDetectThreadCtx *alpd_tctx;
memset(pm_results, 0, sizeof(pm_results));
int r = 0;
Flow f;
uint16_t pm_results[ALPROTO_MAX];
- void *alpd_tctx;
+ AppLayerProtoDetectThreadCtx *alpd_tctx;
memset(pm_results, 0, sizeof(pm_results));
int r = 0;
Flow f;
uint16_t pm_results[ALPROTO_MAX];
- void *alpd_tctx;
+ AppLayerProtoDetectThreadCtx *alpd_tctx;
memset(pm_results, 0, sizeof(pm_results));
int r = 0;
Flow f;
uint16_t pm_results[ALPROTO_MAX];
- void *alpd_tctx;
+ AppLayerProtoDetectThreadCtx *alpd_tctx;
uint32_t cnt;
AppLayerProtoDetectPMRegisterPatternCS(IPPROTO_UDP, ALPROTO_HTTP, "HTTP", 4, 0, STREAM_TOSERVER);
int r = 0;
Flow f;
uint16_t pm_results[ALPROTO_MAX];
- void *alpd_tctx;
+ AppLayerProtoDetectThreadCtx *alpd_tctx;
uint32_t cnt;
AppLayerProtoDetectPMRegisterPatternCS(IPPROTO_UDP, ALPROTO_HTTP, "HTTP", 4, 0, STREAM_TOSERVER);
*
* \retval The app layer protocol.
*/
-AppProto AppLayerProtoDetectGetProto(void *tctx,
+AppProto AppLayerProtoDetectGetProto(AppLayerProtoDetectThreadCtx *tctx,
Flow *f,
uint8_t *buf, uint32_t buflen,
uint8_t ipproto, uint8_t direction);
* \retval Pointer to the thread context, on success;
* NULL, on failure.
*/
-void *AppLayerProtoDetectGetCtxThread(void);
+AppLayerProtoDetectThreadCtx *AppLayerProtoDetectGetCtxThread(void);
/**
* \brief Destroys the app layer protocol detection thread context.
*
* \param tctx Pointer to the app layer protocol detection thread context.
*/
-void AppLayerProtoDetectDestroyCtxThread(void *tctx);
+void AppLayerProtoDetectDestroyCtxThread(AppLayerProtoDetectThreadCtx *tctx);
/***** Utility *****/