diff --git a/src/app-layer-parser.c b/src/app-layer-parser.c index 441ca33f11..b33a0144f7 100644 --- a/src/app-layer-parser.c +++ b/src/app-layer-parser.c @@ -943,6 +943,14 @@ int AppLayerParserProtocolSupportsTxs(uint8_t ipproto, AppProto alproto) SCReturnInt(r); } +int AppLayerParserProtocolHasLogger(uint8_t ipproto, AppProto alproto) +{ + SCEnter(); + int ipproto_map = FlowGetProtoMapping(ipproto); + int r = (alp_ctx.ctxs[ipproto_map][alproto].logger == 0) ? 0 : 1; + SCReturnInt(r); +} + void AppLayerParserTriggerRawStreamReassembly(Flow *f) { SCEnter(); diff --git a/src/app-layer-parser.h b/src/app-layer-parser.h index 0f3cc7e885..6496833898 100644 --- a/src/app-layer-parser.h +++ b/src/app-layer-parser.h @@ -185,6 +185,7 @@ int AppLayerParserHasDecoderEvents(uint8_t ipproto, AppProto alproto, void *alst int AppLayerParserProtocolIsTxAware(uint8_t ipproto, AppProto alproto); int AppLayerParserProtocolIsTxEventAware(uint8_t ipproto, AppProto alproto); int AppLayerParserProtocolSupportsTxs(uint8_t ipproto, AppProto alproto); +int AppLayerParserProtocolHasLogger(uint8_t ipproto, AppProto alproto); void AppLayerParserTriggerRawStreamReassembly(Flow *f); /***** Cleanup *****/