Buffer used to store sent and received packets.
bool isDuplicateTimestamp(BeaconPacket packet)
isDuplicateTimestamp Check is the packet is duplicate.
bool isDuplicatePacketDetectionTimestampSN(quint32 lastReceivedTimestamp, quint32 nowReceivedTimestamp, quint16 lastReceivedSN, quint16 nowReceivedSN)
isDuplicatePacketDetectionTimestamp Calculate if the packet is a duplicate using the timestamp and th...
quint32 m_historyPacketBuffer[NB_PACKET_TYPE]
HistoryPacketBuffer(GnAddr *gnAddr)
HistoryPacketBuffer Default constructor.
quint16 m_historyPacketBufferSN[NB_PACKET_TYPE-2]
void addPacket(BeaconPacket packet)
addPacket Add packet to the buffer.