Skip to content

Commit

Permalink
Make sure seqno_interval is no less than 2.
Browse files Browse the repository at this point in the history
This avoids confusion due to roll-over.
  • Loading branch information
Juliusz Chroboczek committed Jun 10, 2007
1 parent e647fd7 commit c99e947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion babel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c99e947

Please sign in to comment.