DtlsReplayWindow.checkAndMark

bool checkAndMark(ulong seq) @safe pure nothrow @nogc

Check if a sequence number is acceptable and mark it as seen.

Parameters

seqThe 48-bit sequence number to check.

Returns

true if the sequence number is within the window and not a duplicate,

false if it should be rejected (too old or duplicate).