Reworked the STUN plugin
Added support for WhatsApp Voice vs WhatsApp (chat, no voice)
This commit is contained in:
@@ -198,6 +198,7 @@
|
||||
#define NDPI_PROTOCOL_VHUA 184
|
||||
#define NDPI_PROTOCOL_TELEGRAM 185 /* Gianluca Costa <g.costa@xplico.org> */
|
||||
#define NDPI_PROTOCOL_QUIC 188 /* Andrea Buscarinu <andrea.buscarinu@gmail.com> - Michele Campus <michelecampus5@gmail.com> */
|
||||
#define NDPI_PROTOCOL_WHATSAPP_VOICE 189
|
||||
|
||||
|
||||
#define NDPI_CONTENT_AVI 39
|
||||
@@ -236,8 +237,8 @@
|
||||
#define NDPI_SERVICE_YAHOO NDPI_PROTOCOL_YAHOO /* Tomasz Bujlow <tomasz@skatnet.dk> */
|
||||
#define NDPI_SERVICE_PANDORA 187
|
||||
|
||||
/* UPDATE UPDATE UPDATE UPDATE UPDATE UPDATE UPDATE UPDATE UPDATE (NDPI_PROTOCOL_QUIC) */
|
||||
#define NDPI_LAST_IMPLEMENTED_PROTOCOL 188
|
||||
/* UPDATE UPDATE UPDATE UPDATE UPDATE UPDATE UPDATE UPDATE UPDATE (NDPI_PROTOCOL_WHATSAPP_VOICE) */
|
||||
#define NDPI_LAST_IMPLEMENTED_PROTOCOL 189
|
||||
|
||||
#define NDPI_MAX_SUPPORTED_PROTOCOLS (NDPI_LAST_IMPLEMENTED_PROTOCOL + 1)
|
||||
#define NDPI_MAX_NUM_CUSTOM_PROTOCOLS (NDPI_NUM_BITS-NDPI_LAST_IMPLEMENTED_PROTOCOL)
|
||||
|
||||
@@ -747,16 +747,7 @@ typedef struct ndpi_flow_struct {
|
||||
/* protocols which have marked a connection as this connection cannot be protocol XXX, multiple u_int64_t */
|
||||
NDPI_PROTOCOL_BITMASK excluded_protocol_bitmask;
|
||||
|
||||
#if 0
|
||||
#ifdef NDPI_PROTOCOL_RTP
|
||||
u_int32_t rtp_ssid[2];
|
||||
u_int16_t rtp_seqnum[2]; /* current highest sequence number (only goes forwards, is not decreased by retransmissions) */
|
||||
/* tcp and udp */
|
||||
u_int8_t rtp_payload_type[2];
|
||||
u_int32_t rtp_stage1:2; //0-3
|
||||
u_int32_t rtp_stage2:2;
|
||||
#endif
|
||||
#endif
|
||||
u_int8_t num_stun_udp_pkts;
|
||||
|
||||
#ifdef NDPI_PROTOCOL_REDIS
|
||||
u_int8_t redis_s2d_first_char, redis_d2s_first_char;
|
||||
|
||||
Reference in New Issue
Block a user