Configurable ReplayWindow size, zero disables

This commit is contained in:
Brandon L Black 2010-11-13 12:05:50 -06:00 committed by Guus Sliepen
parent 8dfe1b374e
commit 23acc19bc0
7 changed files with 43 additions and 18 deletions

View file

@ -163,7 +163,7 @@ bool send_ans_key(node_t *to) {
// Reset sequence number and late packet window
mykeyused = true;
to->received_seqno = 0;
memset(to->late, 0, sizeof(to->late));
if(replaywin) memset(to->late, 0, replaywin);
// Convert to hexadecimal and send
char key[2 * to->inkeylength + 1];