diff options
author | Luca Deri <deri@ntop.org> | 2018-11-19 18:24:33 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2018-11-19 18:24:33 +0100 |
commit | 582da8d4bb00ed6be656451fbd6ebde6719c5ce2 (patch) | |
tree | 78b76dbeae19d5d686e7d112e1cd5a405353048d /src/lib/protocols/eaq.c | |
parent | 153766917891cd0d4abebc9035bbb427d3a9fbc1 (diff) |
Improved WeChat support
Removed Musical.ly protocol as the service has been merged with another one and thus it is no longer used
Improved guess for UDP protocols
Diffstat (limited to 'src/lib/protocols/eaq.c')
-rw-r--r-- | src/lib/protocols/eaq.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/protocols/eaq.c b/src/lib/protocols/eaq.c index 2082b5263..8768cac6f 100644 --- a/src/lib/protocols/eaq.c +++ b/src/lib/protocols/eaq.c @@ -53,12 +53,15 @@ void ndpi_search_eaq(struct ndpi_detection_module_struct *ndpi_struct, struct nd if(packet->udp != NULL) { u_int32_t seq = (packet->payload[0] * 1000) + (packet->payload[1] * 100) + (packet->payload[2] * 10) + packet->payload[3]; - + if(flow->l4.udp.eaq_pkt_id == 0) flow->l4.udp.eaq_sequence = seq; else { if( (flow->l4.udp.eaq_sequence != seq) && - ((flow->l4.udp.eaq_sequence+1) != seq)) break; + ((flow->l4.udp.eaq_sequence+1) != seq)) + break; + else + flow->l4.udp.eaq_sequence = seq; } if(++flow->l4.udp.eaq_pkt_id == 4) { @@ -66,7 +69,8 @@ void ndpi_search_eaq(struct ndpi_detection_module_struct *ndpi_struct, struct nd NDPI_LOG_INFO(ndpi_struct, "found eaq\n"); ndpi_int_eaq_add_connection(ndpi_struct, flow); return; - } + } else + return; } } while(0); |