meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
2.97k stars 706 forks source link

Add missing hops in traceroute as "unknown" nodes #4056

Closed GUVWAF closed 2 weeks ago

GUVWAF commented 2 weeks ago

Implements #3942. Using hopStart and hopLimit, missing hops in a traceroute (e.g. when a node cannot decrypt it) can be detected. In this case, the node receiving it afterwards adds dummy node numbers (0xFFFFFF) to the route, which will be shown as “Unknown Username” in the apps.

It shows as follows in the logs:

INFO  | ??:??:?? 13 [Router] Route traced:
INFO  | ??:??:?? 13 [Router] 0x75a2bca4 --> 0xffffffff --> 0xfa6c5f90