From c99e94732b7dee9e3ec7acc756a0457d6e39ddd8 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Sun, 10 Jun 2007 23:07:34 +0200 Subject: [PATCH] Make sure seqno_interval is no less than 2. This avoids confusion due to roll-over. --- babel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babel.c b/babel.c index 0eee53cc..c1f202e6 100644 --- a/babel.c +++ b/babel.c @@ -196,7 +196,7 @@ main(int argc, char **argv) 150); if(seqno_interval <= 0) - seqno_interval = MAX(2 * wireless_hello_interval - 1, 0); + seqno_interval = MAX(2 * wireless_hello_interval - 1, 2); jitter = MIN(wireless_hello_interval * 1000 / 4, 2000); update_jitter = 2 * jitter;