From: Jason Ish Date: Mon, 5 Oct 2020 21:05:41 +0000 (-0600) Subject: enip: set unidirection transaction flag X-Git-Tag: suricata-6.0.0~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b215a45e04ff21ce8aa8fb421b4b053ef63b6c2;p=thirdparty%2Fsuricata.git enip: set unidirection transaction flag --- 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.",