From 2b215a45e04ff21ce8aa8fb421b4b053ef63b6c2 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Mon, 5 Oct 2020 15:05:41 -0600 Subject: [PATCH] enip: set unidirection transaction flag --- src/app-layer-enip.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app-layer-enip.c b/src/app-layer-enip.c index 339edcb4bf..0bb841d67c 100644 --- a/src/app-layer-enip.c +++ b/src/app-layer-enip.c @@ -493,7 +493,8 @@ void RegisterENIPUDPParsers(void) AppLayerParserRegisterParserAcceptableDataDirection(IPPROTO_UDP, ALPROTO_ENIP, STREAM_TOSERVER | STREAM_TOCLIENT); - + AppLayerParserRegisterOptionFlags( + IPPROTO_UDP, ALPROTO_ENIP, APP_LAYER_PARSER_OPT_UNIDIR_TXS); } else { SCLogInfo( @@ -576,6 +577,8 @@ void RegisterENIPTCPParsers(void) AppLayerParserRegisterOptionFlags(IPPROTO_TCP, ALPROTO_ENIP, APP_LAYER_PARSER_OPT_ACCEPT_GAPS); + AppLayerParserRegisterOptionFlags( + IPPROTO_TCP, ALPROTO_ENIP, APP_LAYER_PARSER_OPT_UNIDIR_TXS); } else { SCLogConfig("Parser disabled for %s protocol. Protocol detection still on.", -- 2.47.2