Fixes #83. Critical fix: due to an invalid endianess conversion some protocol were not properly indetified

This commit is contained in:
Luca Deri
2015-08-26 16:09:24 +02:00
parent 591d6df489
commit 19e96f7dd2
7 changed files with 52 additions and 45 deletions
+2 -2
View File
@@ -40,8 +40,8 @@ u_int8_t is_skype_flow(struct ndpi_detection_module_struct *ndpi_struct,
Skype connections are identified by some SSL-like communications
without SSL certificate being exchanged
*/
if(is_skype_host(ndpi_struct, ntohl(packet->iph->saddr))
|| is_skype_host(ndpi_struct, ntohl(packet->iph->daddr))) {
if(is_skype_host(ndpi_struct, packet->iph->saddr)
|| is_skype_host(ndpi_struct, packet->iph->daddr)) {
return(1);
}
}