Add missing hops in traceroute as "unkown" (#4056)

E.g. in case a node couldn't decrypt the packet
This commit is contained in:
GUVWAF
2024-06-09 23:03:53 +02:00
committed by GitHub
parent a2fb3d23a1
commit 24458a73d6
2 changed files with 27 additions and 4 deletions

View File

@@ -19,6 +19,9 @@ class TraceRouteModule : public ProtobufModule<meshtastic_RouteDiscovery>
void alterReceivedProtobuf(meshtastic_MeshPacket &p, meshtastic_RouteDiscovery *r) override;
private:
// Call to add unknown hops (e.g. when a node couldn't decrypt it) to the route based on hopStart and current hopLimit
void insertUnknownHops(meshtastic_MeshPacket &p, meshtastic_RouteDiscovery *r);
// Call to add your ID to the route array of a RouteDiscovery message
void appendMyID(meshtastic_RouteDiscovery *r);