]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
enip: set unidirection transaction flag
authorJason Ish <jason.ish@oisf.net>
Mon, 5 Oct 2020 21:05:41 +0000 (15:05 -0600)
committerJason Ish <jason.ish@oisf.net>
Wed, 7 Oct 2020 15:40:38 +0000 (09:40 -0600)
src/app-layer-enip.c

index 339edcb4bfab6c861f650553bd683ffb7d7c7117..0bb841d67c16024e738292f1b61c57ab975e3c7b 100644 (file)
@@ -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.",