From: Jason Ish Date: Mon, 5 Oct 2020 21:05:41 +0000 (-0600) Subject: enip: set unidirection transaction flag X-Git-Tag: suricata-5.0.4~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1438f7c8a118fccf5d705dd0d021f4422c66fc6f;p=thirdparty%2Fsuricata.git enip: set unidirection transaction flag (cherry picked from commit 2b215a45e04ff21ce8aa8fb421b4b053ef63b6c2) --- diff --git a/src/app-layer-enip.c b/src/app-layer-enip.c index 1ad4529128..98c2259abb 100644 --- a/src/app-layer-enip.c +++ b/src/app-layer-enip.c @@ -509,6 +509,8 @@ void RegisterENIPUDPParsers(void) AppLayerParserRegisterDetectFlagsFuncs(IPPROTO_UDP, ALPROTO_ENIP, ENIPGetTxDetectFlags, ENIPSetTxDetectFlags); + AppLayerParserRegisterOptionFlags(IPPROTO_UDP, ALPROTO_ENIP, + APP_LAYER_PARSER_OPT_UNIDIR_TXS); } else { SCLogInfo( @@ -594,6 +596,8 @@ void RegisterENIPTCPParsers(void) AppLayerParserRegisterDetectFlagsFuncs(IPPROTO_TCP, ALPROTO_ENIP, ENIPGetTxDetectFlags, ENIPSetTxDetectFlags); + AppLayerParserRegisterOptionFlags(IPPROTO_TCP, ALPROTO_ENIP, + APP_LAYER_PARSER_OPT_UNIDIR_TXS); } else { SCLogConfig("Parser disabled for %s protocol. Protocol detection still on.",