51struct anti_replay_info {
52 uint32_t last_broadcast_counter;
53 uint32_t last_unicast_counter;
void anti_replay_init_info(struct anti_replay_info *info)
Initializes the anti-replay information about the sender.
void anti_replay_parse_counter(const uint8_t *p)
Parses the frame counter to packetbuf attributes.
bool anti_replay_was_replayed(struct anti_replay_info *info)
Checks if received frame was replayed.
uint32_t anti_replay_get_counter(void)
Gets the frame counter from packetbuf.
void anti_replay_set_counter(void)
Sets the frame counter packetbuf attributes.