aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/skype.c
diff options
context:
space:
mode:
authorCampus <campus@ntop.org>2017-03-15 17:28:31 +0100
committerCampus <campus@ntop.org>2017-03-15 17:28:31 +0100
commit5de6a96af5754c13846883b556f58fc79831c61d (patch)
tree92e78da3795fe17f23a3b8c56c4eee7f2c3dc9ac /src/lib/protocols/skype.c
parent1e014aa95b76e5a73a7a2bef9b729a25c914c735 (diff)
change behaviour for https://github.com/ntop/nDPI/issues/344 - fix skype detection deleting parts that detect host name and ip addr (duplicate behaviour) - improved any detection after fix - added skype host name
Diffstat (limited to 'src/lib/protocols/skype.c')
-rw-r--r--src/lib/protocols/skype.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/lib/protocols/skype.c b/src/lib/protocols/skype.c
index 7236da777..1a4c260c0 100644
--- a/src/lib/protocols/skype.c
+++ b/src/lib/protocols/skype.c
@@ -21,32 +21,6 @@
#ifdef NDPI_PROTOCOL_SKYPE
-static u_int8_t is_skype_host(struct ndpi_detection_module_struct *ndpi_struct, u_int32_t host) {
- struct in_addr pin;
-
- pin.s_addr = host;
-
- return((ndpi_network_ptree_match(ndpi_struct, &pin) == NDPI_PROTOCOL_SKYPE) ? 1 : 0);
-}
-
-u_int8_t is_skype_flow(struct ndpi_detection_module_struct *ndpi_struct,
- struct ndpi_flow_struct *flow) {
- struct ndpi_packet_struct *packet = &flow->packet;
-
- if(packet->iph) {
- /*
- Skype connections are identified by some SSL-like communications
- without SSL certificate being exchanged
- */
- if(is_skype_host(ndpi_struct, packet->iph->saddr)
- || is_skype_host(ndpi_struct, packet->iph->daddr)) {
- return(1);
- }
- }
-
- return(0);
-}
-
static void ndpi_check_skype(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
struct ndpi_packet_struct *packet = &flow->packet;
@@ -57,12 +31,6 @@ static void ndpi_check_skype(struct ndpi_detection_module_struct *ndpi_struct, s
if(flow->host_server_name[0] != '\0')
return;
-
- if(is_skype_flow(ndpi_struct, flow)) {
- ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_SKYPE, NDPI_PROTOCOL_UNKNOWN);
- return;
- }
-
// UDP check
if(packet->udp != NULL) {
flow->l4.udp.skype_packet_id++;