Skip to content

Commit

Permalink
Update STANDARD.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gafferongames committed Apr 5, 2019
1 parent ce55c29 commit 207fb1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions STANDARD.md
Expand Up @@ -295,9 +295,9 @@ The replay protection algorithm is as follows:

1. Any packet older than the most recent sequence number received, minus the _replay buffer size_, is discarded on the receiver side.

2. When a packet arrives that is newer than the most recent sequence number received.
2. If a packet arrives that is within _replay buffer size_ of the most recent sequence number, it is accepted only if its sequence number has not already been received, otherwise it is ignored.

3. If a packet arrives that is within _replay buffer size_ of the most recent sequence number, it is accepted only if its sequence number has not already been received, otherwise it is ignored.
3. After the packet has been successfully decrypted, a) if the packet sequence # is in the replay buffer window that entry is set as received, and b) the most recent sequence number is updated if the packet sequence # is > than the previous most recent sequence number received.

Replay protection is applied to the following packet types on both client and server:

Expand Down

0 comments on commit 207fb1c

Please sign in to comment.