From: Victor Julien Date: Mon, 31 Oct 2016 12:41:46 +0000 (+0100) Subject: ENIP: disable parser if no config found X-Git-Tag: suricata-3.2RC1~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=238163bc8d3c3b7a60ba677b10c9089638fe7f8f;p=thirdparty%2Fsuricata.git ENIP: disable parser if no config found --- diff --git a/src/app-layer-enip.c b/src/app-layer-enip.c index a480d304db..161d2550fd 100644 --- a/src/app-layer-enip.c +++ b/src/app-layer-enip.c @@ -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); }