IRC: simplify detection (#2423)

IRC has its best times well behind, but there are still some servers
using it.

We should try to simplify the detection logic, still based on OpenDPI
logic.

Let's start with some easy changes:
* try to detect TLS connection via standard hostname/SNI matching,
removing an old heuristic (we have never had any trace matching it);
* add some basic server names;
* once we detect that the flow is IRC, we don't have to perform
anything else;
* remove HTTP stuff; real HTTP flows never trigger that data path
* use `ndpi_memmem()` when possible
This commit is contained in:
Ivan Nardi
2024-05-11 14:12:13 +02:00
committed by GitHub
parent 70c4920184
commit 8c5e6e9761
4 changed files with 22 additions and 402 deletions
+10
View File
@@ -32,6 +32,15 @@ Adobe Connect is a web conferencing platform that allows users to conduct online
References: `Main site: <https://www.adobe.com/products/adobeconnect.html>`_
.. _Proto 65:
`NDPI_PROTOCOL_IRC`
==================
IRC (Internet Relay Chat) is a text-based chat system for instant messaging.
References: `Wikipiedia: <https://en.wikipedia.org/wiki/IRC>`_ and `Some statistics: <https://netsplit.de/networks/top10.php>`
.. _Proto 72:
`NDPI_PROTOCOL_HART_IP`
@@ -85,6 +94,7 @@ Steam Datagram Relay (SDR) is Valve's virtual private gaming network. Used in al
References: `Main site: <https://partner.steamgames.com/doc/features/multiplayer/steamdatagramrelay>`_
.. _Proto 338:
`NDPI_PROTOCOL_SRTP`