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