package replay
import "golang.zx2c4.com/wireguard/replay"
Package replay implements an efficient anti-replay algorithm as specified in RFC 6479.
Index ¶
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
A Filter rejects replayed messages by checking if message counter value is within a sliding window of previously received messages. The zero value for Filter is an empty filter ready to use. Filters are unsafe for concurrent use.
func (*Filter) Reset ¶
func (f *Filter) Reset()
Reset resets the filter to empty state.
func (*Filter) ValidateCounter ¶
ValidateCounter checks if the counter should be accepted. Overlimit counters (>= limit) are always rejected.
Source Files ¶
replay.go
- Version
- v0.0.0-20250521234502-f333402bd9cb (latest)
- Published
- May 21, 2025
- Platform
- linux/amd64
- Last checked
- 3 days ago –
Tools for package owners.