From f55397336b30550652a391b6e288686207fb1c12 Mon Sep 17 00:00:00 2001 From: David Schweikert Date: Thu, 25 Jul 2013 22:29:56 +0200 Subject: [PATCH] increase SEQMAP_MAX to 65355 --- src/seqmap.c | 2 +- src/seqmap.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/seqmap.c b/src/seqmap.c index 2e6c030..e64cbd2 100644 --- a/src/seqmap.c +++ b/src/seqmap.c @@ -44,7 +44,7 @@ /* description of the data structure used: * - * - we assume that no more than SEQMAP_MAXSEQ (65000) pings are sent in + * - we assume that no more than SEQMAP_MAXSEQ (65535) pings are sent in * the timeout interval (SEQMAP_TIMEOUT_IN_S) * - we store the values in an array with SEQMAP_MAXSEQ elements * - current sequence number % SEQMAP_MAXSEQ gives the current index diff --git a/src/seqmap.h b/src/seqmap.h index f85050d..cafde4d 100644 --- a/src/seqmap.h +++ b/src/seqmap.h @@ -11,7 +11,7 @@ typedef struct seqmap_value } SEQMAP_VALUE; -#define SEQMAP_MAXSEQ 65000 +#define SEQMAP_MAXSEQ 65535 void seqmap_init(); unsigned int seqmap_add(unsigned int host_nr, unsigned int ping_count, struct timeval *now);