![]() |
API参考
|
#include <rec_anti_replay.h>
Public 属性 | |
| uint64_t | top |
| uint64_t | window |
Anti-replay check function: Use uint64_t variable to store flag bit,When receive a message, set the flag of corresponding sequence number to 1 The least significant bit of the variable stores the maximum sequence number of the sliding window top, when the top updates, shift the sliding window to the left If a duplicate message or a message whose sequence number is smaller than the minimum sliding window value is received, discard it
window: 64 bits Range: [top-63, top)