diff options
author | Luca Deri <deri@ntop.org> | 2019-07-22 23:06:25 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-07-22 23:06:25 +0200 |
commit | ccea4669de7049372c31c5710fcde04b0383a3aa (patch) | |
tree | fabf0486a2f934b0f232a3a199114cd6a03d24c9 /src/lib/protocols/stun.c | |
parent | db36294dcb01020e4e9677bd9395528796466deb (diff) |
Improved WhatsApp detection
Diffstat (limited to 'src/lib/protocols/stun.c')
-rw-r--r-- | src/lib/protocols/stun.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/protocols/stun.c b/src/lib/protocols/stun.c index 4a6e4bdbb..ecd7b56ee 100644 --- a/src/lib/protocols/stun.c +++ b/src/lib/protocols/stun.c @@ -143,6 +143,7 @@ static ndpi_int_stun_t ndpi_int_check_stun(struct ndpi_detection_module_struct * case 0x0008: /* Message Integrity */ case 0x0020: /* XOR-MAPPED-ADDRESSES */ case 0x4000: + case 0x4001: case 0x4002: /* These are the only messages apparently whatsapp voice can use */ break; @@ -223,7 +224,7 @@ static ndpi_int_stun_t ndpi_int_check_stun(struct ndpi_detection_module_struct * udp_stun_found: if(can_this_be_whatsapp_voice) { flow->protos.stun_ssl.stun.num_processed_pkts++; - + flow->guessed_host_protocol_id = NDPI_PROTOCOL_WHATSAPP_VOICE; return((flow->protos.stun_ssl.stun.num_udp_pkts < MAX_NUM_STUN_PKTS) ? NDPI_IS_NOT_STUN : NDPI_IS_STUN); } else { /* |