feat(repeater): antispam — FairnessLimiter (port #1502) + kanálový deny list

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Fable 5 committed 2026-09-05 21:35:36 +02:00
1 parent de5bd52bd9
commit 6f90c80dcc
15 files changed
+1098 -112

No files matched your search

+8
View File
@@ -56,6 +56,14 @@ protected:
*/
virtual bool allowPacketForward(const Packet* packet);
/**
* \brief Takes a token from the rate-limiter, deciding whether this packet should be forwarded.
* May CONSUME limiter state, so callers keep it as the LAST condition of a forward decision
* and call it at most once per packet. (CUSTOM TeTeHacko: port of upstream proposal #1502.)
* \returns true, if the packet should be forwarded
*/
virtual bool takeForwardingRateLimit(const Packet* packet);
/**
* \returns number of milliseconds delay to apply to retransmitting the given packet.
*/