aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_utils.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2023-10-30 10:28:19 +0100
committerGitHub <noreply@github.com>2023-10-30 10:28:19 +0100
commit42d24f8799836025e4526ebb30f34750d528b980 (patch)
treed542f5c52e1f048c620429f822114dbfd4a29bec /src/lib/ndpi_utils.c
parente399bd7e3d4cb4071e426ecb735084c6577a8644 (diff)
STUN: major code rework (#2116)
Try to have a faster classification, on first packet; use standard extra dissection data path for sub-classification, metadata extraction and monitoring. STUN caches: * use the proper confidence value * lookup into the caches only once per flow, after having found a proper STUN classification Add identification of Telegram VoIP calls.
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r--src/lib/ndpi_utils.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c
index 7fbecd9f9..645dfc12a 100644
--- a/src/lib/ndpi_utils.c
+++ b/src/lib/ndpi_utils.c
@@ -1373,16 +1373,6 @@ int ndpi_dpi2json(struct ndpi_detection_module_struct *ndpi_struct,
ndpi_serialize_end_of_block(serializer);
break;
- case NDPI_PROTOCOL_STUN:
- ndpi_serialize_start_of_block(serializer, "stun");
- ndpi_serialize_string_uint32(serializer, "num_pkts", flow->stun.num_pkts);
- ndpi_serialize_string_uint32(serializer, "num_binding_requests",
- flow->stun.num_binding_requests);
- ndpi_serialize_string_uint32(serializer, "num_processed_pkts",
- flow->stun.num_processed_pkts);
- ndpi_serialize_end_of_block(serializer);
- break;
-
case NDPI_PROTOCOL_TELNET:
ndpi_serialize_start_of_block(serializer, "telnet");
ndpi_serialize_string_string(serializer, "username", flow->protos.telnet.username);