diff options
author | Campus <campus@ntop.org> | 2015-11-12 12:08:41 +0100 |
---|---|---|
committer | Campus <campus@ntop.org> | 2015-11-12 12:08:41 +0100 |
commit | a4f170604ce97b12718181fd43f506edbdb0b0d5 (patch) | |
tree | e61b9887adde422ff8b7f5fd37b01eb8993c618a /src/lib/protocols/bittorrent.c | |
parent | 349e0b6fd22f50426e37362a92683d0478352882 (diff) |
removed kernel support and #if 0s
Diffstat (limited to 'src/lib/protocols/bittorrent.c')
-rw-r--r-- | src/lib/protocols/bittorrent.c | 7 |
1 files changed, 0 insertions, 7 deletions
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; |