aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Soref <jsoref@users.noreply.github.com>2017-03-12 21:34:28 +0000
committerJosh Soref <jsoref@users.noreply.github.com>2017-03-12 21:34:28 +0000
commitd5b15c498b7ea0ae1efd2b77ba4aa5c5e75472dc (patch)
treea2da6b501364d7d822fbf633ccb2d470e25f1670
parent66e93da6f530ea83b16f14c1ec3e89f00517f8f0 (diff)
spelling: five
-rw-r--r--src/lib/protocols/ayiya.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/protocols/ayiya.c b/src/lib/protocols/ayiya.c
index 59f319f9c..6e5401093 100644
--- a/src/lib/protocols/ayiya.c
+++ b/src/lib/protocols/ayiya.c
@@ -51,11 +51,11 @@ void ndpi_search_ayiya(struct ndpi_detection_module_struct *ndpi_struct, struct
/* FINISH */
struct ayiya *a = (struct ayiya*)packet->payload;
u_int32_t epoch = ntohl(a->epoch), now;
- u_int32_t fireyears = 86400 * 365 * 5;
+ u_int32_t fiveyears = 86400 * 365 * 5;
now = flow->packet.tick_timestamp;
- if((epoch >= (now - fireyears)) && (epoch <= (now+86400 /* 1 day */)))
+ if((epoch >= (now - fiveyears)) && (epoch <= (now+86400 /* 1 day */)))
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_AYIYA, NDPI_PROTOCOL_UNKNOWN);
return;