Limit flood advert forwarding and persistent abuse

This commit is contained in:
mikecarper committed 2026-09-09 17:16:00 -07:00
1 parent 27ff4b9063
commit 23fe7c8a9d
15 files changed
+985 -6

No files matched your search

+4
View File
@@ -1,6 +1,7 @@
#pragma once
#include <Dispatcher.h>
#include <helpers/FloodAdvertLimiter.h>
// OTA-over-LoRa transport is understood by every Mesh role even when the OTA manager/installer is not
// compiled in. Repeaters can therefore relay PAYLOAD_TYPE_OTA opaquely while they are on TempRadio.
@@ -228,6 +229,9 @@ protected:
*/
virtual bool allowPacketForward(const Packet* packet);
// Forwarding roles own the RAM; companions need no advert-limiter table.
virtual FloodAdvertLimiter* getFloodAdvertLimiter() { return nullptr; }
/**
* \returns number of milliseconds delay to apply to retransmitting the given packet.
*/