]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
ENIP: disable parser if no config found
authorVictor Julien <victor@inliniac.net>
Mon, 31 Oct 2016 12:41:46 +0000 (13:41 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 31 Oct 2016 12:41:46 +0000 (13:41 +0100)
src/app-layer-enip.c

index a480d304db87534d24eccaa28dc2f2e05278d9b9..161d2550fdb94352af22813debed2de14adb1dae 100644 (file)
@@ -482,15 +482,7 @@ void RegisterENIPTCPParsers(void)
                     proto_name, ALPROTO_ENIP, 0, sizeof(ENIPEncapHdr),
                     ENIPProbingParser))
             {
-                SCLogDebug(
-                        "no ENIP TCP config found enabling ENIP detection on port 44818.");
-
-                AppLayerProtoDetectPPRegister(IPPROTO_TCP, "44818",
-                        ALPROTO_ENIP, 0, sizeof(ENIPEncapHdr), STREAM_TOSERVER,
-                        ENIPProbingParser);
-                AppLayerProtoDetectPPRegister(IPPROTO_TCP, "44818",
-                        ALPROTO_ENIP, 0, sizeof(ENIPEncapHdr), STREAM_TOCLIENT,
-                        ENIPProbingParser);
+                return;
             }
         }
 
@@ -529,8 +521,7 @@ void RegisterENIPTCPParsers(void)
                 ALPROTO_ENIP, STREAM_TOSERVER | STREAM_TOCLIENT);
     } else
     {
-        SCLogInfo(
-                "Parsed disabled for %s protocol. Protocol detection" "still on.",
+        SCLogConfig("Parser disabled for %s protocol. Protocol detection still on.",
                 proto_name);
     }