enip: register on default 44818/tcp port

if no config option is found,
as is done for udp

Ticket: 6304
pull/10873/head
Philippe Antoine 2 years ago committed by Victor Julien
parent 240e068b81
commit 9075e58973

@ -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;
}
}

Loading…
Cancel
Save