API参考
载入中...
搜索中...
未找到
RecSlidWindow结构体 参考

#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)

  1. Initial state: top - 63 top | - - - - - - |
  2. hen the top + 2 message is received: top - 61 top + 2 | - - - - - - |

该结构体的文档由以下文件生成: