From: Philippe Antoine Date: Fri, 22 Dec 2023 09:05:17 +0000 (+0100) Subject: enip: register on default 44818/tcp port X-Git-Tag: suricata-8.0.0-beta1~1467 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9075e589735dd887a24907f048c505e15ec6eb3c;p=thirdparty%2Fsuricata.git enip: register on default 44818/tcp port if no config option is found, as is done for udp Ticket: 6304 --- 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; } }