Limit flood advert forwarding and persistent abuse
This commit is contained in:
1 parent
27ff4b9063
commit
23fe7c8a9d
15 files changed
+985
-6
No files matched your search
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user