diff options
author | Michele Campus <fci1908@gmail.com> | 2017-03-13 14:46:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-13 14:46:22 +0100 |
commit | 1e014aa95b76e5a73a7a2bef9b729a25c914c735 (patch) | |
tree | 40607453631b52838da6bab919103a16b0ab50d8 /src/lib/protocols/ayiya.c | |
parent | 9962eb1f085c07b03c38375e2a688850cf82a8ce (diff) | |
parent | e17f62d26149b176d59deb9b7b643b3c57d223bb (diff) |
Merge pull request #348 from jsoref/spelling
Spelling fixes
Diffstat (limited to 'src/lib/protocols/ayiya.c')
-rw-r--r-- | src/lib/protocols/ayiya.c | 4 |
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; |