From 9075e589735dd887a24907f048c505e15ec6eb3c Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Fri, 22 Dec 2023 10:05:17 +0100 Subject: [PATCH] enip: register on default 44818/tcp port if no config option is found, as is done for udp Ticket: 6304 --- src/app-layer-enip.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app-layer-enip.c b/src/app-layer-enip.c index 2fbe898d4e..9de79579f8 100644 --- a/src/app-layer-enip.c +++ b/src/app-layer-enip.c @@ -597,6 +597,14 @@ void RegisterENIPTCPParsers(void) proto_name, ALPROTO_ENIP, 0, sizeof(ENIPEncapHdr), ENIPProbingParser, 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, NULL); + + AppLayerProtoDetectPPRegister(IPPROTO_TCP, "44818", ALPROTO_ENIP, 0, + sizeof(ENIPEncapHdr), STREAM_TOCLIENT, ENIPProbingParser, NULL); + return; } } -- 2.47.2