Fix for #86
This commit is contained in:
+8
-6
@@ -2061,9 +2061,6 @@ void ndpi_set_protocol_detection_bitmask2(struct ndpi_detection_module_struct *n
|
|||||||
/* HTTP */
|
/* HTTP */
|
||||||
init_http_dissector(ndpi_struct, &a, detection_bitmask);
|
init_http_dissector(ndpi_struct, &a, detection_bitmask);
|
||||||
|
|
||||||
/* SKYPE */
|
|
||||||
init_skype_dissector(ndpi_struct, &a, detection_bitmask);
|
|
||||||
|
|
||||||
/* Stracraft */
|
/* Stracraft */
|
||||||
init_starcraft_dissector(ndpi_struct, &a, detection_bitmask);
|
init_starcraft_dissector(ndpi_struct, &a, detection_bitmask);
|
||||||
|
|
||||||
@@ -2088,9 +2085,6 @@ void ndpi_set_protocol_detection_bitmask2(struct ndpi_detection_module_struct *n
|
|||||||
/* HEP */
|
/* HEP */
|
||||||
init_hep_dissector(ndpi_struct, &a, detection_bitmask);
|
init_hep_dissector(ndpi_struct, &a, detection_bitmask);
|
||||||
|
|
||||||
/* BITTORRENT */
|
|
||||||
init_bittorrent_dissector(ndpi_struct, &a, detection_bitmask);
|
|
||||||
|
|
||||||
/* Teredo */
|
/* Teredo */
|
||||||
init_teredo_dissector(ndpi_struct, &a, detection_bitmask);
|
init_teredo_dissector(ndpi_struct, &a, detection_bitmask);
|
||||||
|
|
||||||
@@ -2463,6 +2457,14 @@ void ndpi_set_protocol_detection_bitmask2(struct ndpi_detection_module_struct *n
|
|||||||
/* UBNTAC2 */
|
/* UBNTAC2 */
|
||||||
init_ubntac2_dissector(ndpi_struct, &a, detection_bitmask);
|
init_ubntac2_dissector(ndpi_struct, &a, detection_bitmask);
|
||||||
|
|
||||||
|
/* Put false-positive sensitive protocols at the end */
|
||||||
|
|
||||||
|
/* SKYPE */
|
||||||
|
init_skype_dissector(ndpi_struct, &a, detection_bitmask);
|
||||||
|
|
||||||
|
/* BITTORRENT */
|
||||||
|
init_bittorrent_dissector(ndpi_struct, &a, detection_bitmask);
|
||||||
|
|
||||||
/* ----------------------------------------------------------------- */
|
/* ----------------------------------------------------------------- */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,9 @@ static void ndpi_check_skype(struct ndpi_detection_module_struct *ndpi_struct, s
|
|||||||
// const u_int8_t *packet_payload = packet->payload;
|
// const u_int8_t *packet_payload = packet->payload;
|
||||||
u_int32_t payload_len = packet->payload_packet_len;
|
u_int32_t payload_len = packet->payload_packet_len;
|
||||||
|
|
||||||
|
if(flow->host_server_name[0] != '\0')
|
||||||
|
return;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Skype AS8220
|
Skype AS8220
|
||||||
212.161.8.0/24
|
212.161.8.0/24
|
||||||
|
|||||||
@@ -48,6 +48,9 @@ void ndpi_search_tcp_or_udp(struct ndpi_detection_module_struct *ndpi_struct, st
|
|||||||
u_int proto;
|
u_int proto;
|
||||||
struct ndpi_packet_struct *packet = &flow->packet;
|
struct ndpi_packet_struct *packet = &flow->packet;
|
||||||
|
|
||||||
|
if(flow->host_server_name[0] != '\0')
|
||||||
|
return;
|
||||||
|
|
||||||
if(ndpi_is_tor_flow(ndpi_struct, flow)) {
|
if(ndpi_is_tor_flow(ndpi_struct, flow)) {
|
||||||
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_TOR, NDPI_PROTOCOL_UNKNOWN);
|
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_TOR, NDPI_PROTOCOL_UNKNOWN);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user