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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user