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:
@@ -84,6 +84,9 @@ extern "C" {
|
||||
u_int16_t lower_detected_protocol,
|
||||
ndpi_confidence_t confidence);
|
||||
|
||||
void ndpi_reset_detected_protocol(struct ndpi_detection_module_struct *ndpi_struct,
|
||||
struct ndpi_flow_struct *flow);
|
||||
|
||||
void ndpi_set_detected_protocol_keeping_master(struct ndpi_detection_module_struct *ndpi_str,
|
||||
struct ndpi_flow_struct *flow,
|
||||
u_int16_t detected_protocol,
|
||||
|
||||
@@ -383,6 +383,7 @@ typedef enum {
|
||||
NDPI_PROTOCOL_CAN = 352,
|
||||
NDPI_PROTOCOL_PROTOBUF = 353,
|
||||
NDPI_PROTOCOL_ETHEREUM = 354,
|
||||
NDPI_PROTOCOL_TELEGRAM_VOIP = 355,
|
||||
|
||||
#ifdef CUSTOM_NDPI_PROTOCOLS
|
||||
#include "../../../nDPI-custom/custom_ndpi_protocol_ids.h"
|
||||
|
||||
@@ -1533,7 +1533,7 @@ struct ndpi_flow_struct {
|
||||
} kerberos_buf;
|
||||
|
||||
struct {
|
||||
u_int8_t num_pkts, num_binding_requests, num_processed_pkts, maybe_dtls;
|
||||
u_int8_t maybe_dtls;
|
||||
} stun;
|
||||
|
||||
struct {
|
||||
|
||||
Reference in New Issue
Block a user