From a4f170604ce97b12718181fd43f506edbdb0b0d5 Mon Sep 17 00:00:00 2001 From: Campus Date: Thu, 12 Nov 2015 12:08:41 +0100 Subject: removed kernel support and #if 0s --- src/lib/protocols/bittorrent.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/lib/protocols/bittorrent.c') diff --git a/src/lib/protocols/bittorrent.c b/src/lib/protocols/bittorrent.c index e7f55a78d..99420b85e 100644 --- a/src/lib/protocols/bittorrent.c +++ b/src/lib/protocols/bittorrent.c @@ -432,14 +432,7 @@ void ndpi_search_bittorrent(struct ndpi_detection_module_struct *ndpi_struct, st u_int32_t ts = ntohl(*((u_int32_t*)&(packet->payload[4]))); u_int32_t now; -#ifndef __KERNEL__ now = (u_int32_t)time(NULL); -#else - struct timespec t; - - getnstimeofday(&t); - now = t.tv_sec; -#endif if((ts < (now+86400)) && (ts > (now-86400))) { goto bittorrent_found; -- cgit v1.2.3