my DSR changes broke acks for flood routing also. Fix #146

This commit is contained in:
geeksville
2020-05-25 11:55:42 -07:00
parent 03999e9d56
commit f4b1678535
3 changed files with 30 additions and 17 deletions

View File

@@ -98,6 +98,11 @@ class ReliableRouter : public FloodingRouter
PendingPacket *findPendingPacket(NodeNum from, PacketId id) { return findPendingPacket(GlobalPacketId(from, id)); }
PendingPacket *findPendingPacket(GlobalPacketId p);
/**
* We hook this method so we can see packets before FloodingRouter says they should be discarded
*/
virtual bool shouldFilterReceived(const MeshPacket *p);
private:
/**
* Send an ack or a nak packet back towards whoever sent idFrom