aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/zattoo.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2020-06-06 11:29:03 +0200
committerLuca Deri <deri@ntop.org>2020-06-06 11:29:03 +0200
commit801c9481cb9c1b55382dc6e14dd0f9f573d3fea7 (patch)
tree629d74482946020394f1a3dfd95f8ee71798f31e /src/lib/protocols/zattoo.c
parent605d548d4a5f2c298a6f98e5135d4ac63886d89a (diff)
Removed some obsolete protocols (battlefield, oscar, pcanywhere, tvants)
Diffstat (limited to 'src/lib/protocols/zattoo.c')
-rw-r--r--src/lib/protocols/zattoo.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/protocols/zattoo.c b/src/lib/protocols/zattoo.c
index fb6516458..b43dd765a 100644
--- a/src/lib/protocols/zattoo.c
+++ b/src/lib/protocols/zattoo.c
@@ -46,9 +46,9 @@ u_int8_t ndpi_int_zattoo_user_agent_set(struct ndpi_detection_module_struct *ndp
#define ZATTOO_DETECTED \
if (src != NULL) \
- src->zattoo_ts = packet->tick_timestamp; \
+ src->zattoo_ts = packet->current_time_ms; \
if (dst != NULL) \
- dst->zattoo_ts = packet->tick_timestamp; \
+ dst->zattoo_ts = packet->current_time_ms; \
\
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_ZATTOO, NDPI_PROTOCOL_UNKNOWN)
@@ -63,10 +63,10 @@ void ndpi_search_zattoo(struct ndpi_detection_module_struct *ndpi_struct, struct
NDPI_LOG_DBG(ndpi_struct, "search ZATTOO\n");
if(packet->detected_protocol_stack[0] == NDPI_PROTOCOL_ZATTOO) {
- if(src != NULL && ((u_int32_t) (packet->tick_timestamp - src->zattoo_ts) < ndpi_struct->zattoo_connection_timeout))
- src->zattoo_ts = packet->tick_timestamp;
- if (dst != NULL && ((u_int32_t) (packet->tick_timestamp - dst->zattoo_ts) < ndpi_struct->zattoo_connection_timeout))
- dst->zattoo_ts = packet->tick_timestamp;
+ if(src != NULL && ((u_int32_t) (packet->current_time_ms - src->zattoo_ts) < ndpi_struct->zattoo_connection_timeout))
+ src->zattoo_ts = packet->current_time_ms;
+ if (dst != NULL && ((u_int32_t) (packet->current_time_ms - dst->zattoo_ts) < ndpi_struct->zattoo_connection_timeout))
+ dst->zattoo_ts = packet->current_time_ms;
return;
}
/* search over TCP */