]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Rename AppLayerProtoDetectCtxThread -> AppLayerProtoDetectThreadCtx
authorVictor Julien <victor@inliniac.net>
Thu, 9 Jan 2014 09:41:22 +0000 (10:41 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 10 Jan 2014 10:53:41 +0000 (11:53 +0100)
src/app-layer-detect-proto.c

index e89ecda0e175651acd92a936e18ca18208a6efa8..e2410d64bdefd51978a234ce3f5cbd9803a3a98c 100644 (file)
@@ -151,11 +151,11 @@ typedef struct AppLayerProtoDetectCtx_ {
 /**
  * \brief The app layer protocol detection thread context.
  */
-typedef struct AppLayerProtoDetectCtxThread_ {
+typedef struct AppLayerProtoDetectThreadCtx_ {
     PatternMatcherQueue pmq;
     /* The value 2 is for direction(0 - toserver, 1 - toclient). */
     MpmThreadCtx mpm_tctx[FLOW_PROTO_DEFAULT][2];
-} AppLayerProtoDetectCtxThread;
+} AppLayerProtoDetectThreadCtx;
 
 /* The global app layer proto detection context. */
 AppLayerProtoDetectCtx alpd_ctx;
@@ -198,7 +198,7 @@ static uint16_t AppLayerProtoDetectPMMatchSignature(AppLayerProtoDetectPMSignatu
     SCReturnInt(proto);
 }
 
-static uint16_t AppLayerProtoDetectPMGetProto(AppLayerProtoDetectCtxThread *tctx,
+static uint16_t AppLayerProtoDetectPMGetProto(AppLayerProtoDetectThreadCtx *tctx,
                                               Flow *f,
                                               uint8_t *buf, uint16_t buflen,
                                               uint8_t direction,
@@ -1541,7 +1541,7 @@ void *AppLayerProtoDetectGetCtxThread(void)
 {
     SCEnter();
 
-    AppLayerProtoDetectCtxThread *alpd_tctx = NULL;
+    AppLayerProtoDetectThreadCtx *alpd_tctx = NULL;
     MpmCtx *mpm_ctx;
     MpmThreadCtx *mpm_tctx;
     int i, j;
@@ -1590,7 +1590,7 @@ void AppLayerProtoDetectDestroyCtxThread(void *tctx)
 {
     SCEnter();
 
-    AppLayerProtoDetectCtxThread *alpd_tctx = (AppLayerProtoDetectCtxThread *)tctx;
+    AppLayerProtoDetectThreadCtx *alpd_tctx = (AppLayerProtoDetectThreadCtx *)tctx;
     MpmCtx *mpm_ctx;
     MpmThreadCtx *mpm_tctx;
     int ipproto_map, dir;