int AppLayerParserSetup(void) { SCEnter(); memset(&alp_ctx, 0, sizeof(alp_ctx)); /* set the default tx handler if none was set explicitly */ if (AppLayerGetActiveTxIdFuncPtr == NULL) { RegisterAppLayerGetActiveTxIdFunc(AppLayerTransactionGetActiveDetectLog); } SCReturnInt(0); }
int AppLayerParserSetup(void) { SCEnter(); AppProto alproto = 0; int flow_proto = 0; memset(&alp_ctx, 0, sizeof(alp_ctx)); /* set the default tx handler if none was set explicitly */ if (AppLayerGetActiveTxIdFuncPtr == NULL) { RegisterAppLayerGetActiveTxIdFunc(AppLayerTransactionGetActiveDetectLog); } /* lets set a default value for stream_depth */ for (flow_proto = 0; flow_proto < FLOW_PROTO_DEFAULT; flow_proto++) { for (alproto = 0; alproto < ALPROTO_MAX; alproto++) { alp_ctx.ctxs[flow_proto][alproto].stream_depth = stream_config.reassembly_depth; } } SCReturnInt(0); }