@ -465,8 +465,7 @@ void RegisterENIPUDPParsers(void)
SCEnter ( ) ;
SCEnter ( ) ;
const char * proto_name = " enip " ;
const char * proto_name = " enip " ;
if ( AppLayerProtoDetectConfProtoDetectionEnabled ( " udp " , proto_name ) )
if ( AppLayerProtoDetectConfProtoDetectionEnabledDefault ( " udp " , proto_name , false ) ) {
{
AppLayerProtoDetectRegisterProtocol ( ALPROTO_ENIP , proto_name ) ;
AppLayerProtoDetectRegisterProtocol ( ALPROTO_ENIP , proto_name ) ;
if ( RunmodeIsUnittests ( ) )
if ( RunmodeIsUnittests ( ) )
@ -496,8 +495,7 @@ void RegisterENIPUDPParsers(void)
}
}
}
}
} else
} else {
{
SCLogConfig ( " Protocol detection and parser disabled for %s protocol. " ,
SCLogConfig ( " Protocol detection and parser disabled for %s protocol. " ,
proto_name ) ;
proto_name ) ;
return ;
return ;
@ -555,8 +553,7 @@ void RegisterENIPTCPParsers(void)
SCEnter ( ) ;
SCEnter ( ) ;
const char * proto_name = " enip " ;
const char * proto_name = " enip " ;
if ( AppLayerProtoDetectConfProtoDetectionEnabled ( " tcp " , proto_name ) )
if ( AppLayerProtoDetectConfProtoDetectionEnabledDefault ( " tcp " , proto_name , false ) ) {
{
AppLayerProtoDetectRegisterProtocol ( ALPROTO_ENIP , proto_name ) ;
AppLayerProtoDetectRegisterProtocol ( ALPROTO_ENIP , proto_name ) ;
if ( RunmodeIsUnittests ( ) )
if ( RunmodeIsUnittests ( ) )
@ -577,8 +574,7 @@ void RegisterENIPTCPParsers(void)
}
}
}
}
} else
} else {
{
SCLogDebug ( " Protocol detection and parser disabled for %s protocol. " ,
SCLogDebug ( " Protocol detection and parser disabled for %s protocol. " ,
proto_name ) ;
proto_name ) ;
return ;
return ;