diff options
author | Michele Campus <fci1908@gmail.com> | 2015-11-12 14:57:02 +0100 |
---|---|---|
committer | Michele Campus <fci1908@gmail.com> | 2015-11-12 14:57:02 +0100 |
commit | dd3a79dac2bd67ce4ef5bb8fde0fb5936d8d4d81 (patch) | |
tree | e61b9887adde422ff8b7f5fd37b01eb8993c618a /src/lib/protocols/bittorrent.c | |
parent | 63cab68a9687f48a955f1edf35c7230b7a0c2d2d (diff) | |
parent | a4f170604ce97b12718181fd43f506edbdb0b0d5 (diff) |
Merge pull request #114 from kYroL01/dev
Refactoring nDPI
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; |