Skip to content

Update next-hops based on traceroute result#8219

Merged
thebentern merged 2 commits into
meshtastic:developfrom
GUVWAF:nextHopTrace
Oct 5, 2025
Merged

Update next-hops based on traceroute result#8219
thebentern merged 2 commits into
meshtastic:developfrom
GUVWAF:nextHopTrace

Conversation

@GUVWAF

@GUVWAF GUVWAF commented Oct 5, 2025

Copy link
Copy Markdown
Member

This updates next-hops for nodes in the original route towards a certain destination when the traceroute result came back. Brought up by @mihvoi (#7839 (comment)).

E.g., if the route is A->B->C->D and we are B, we can set C as next-hop for C and D. Similarly, if we are C, we can set D as next-hop for D. Lastly if we are A, we can set B as next-hop for B, C and D.

Tested with the interactive simulator, e.g. for the original sender:

INFO  | 14:39:44 80 [Router] Route traced:
0x10 --> 0x11 (-9.25dB) --> 0x12 (-7.25dB) --> 0x13 (-4.50dB)
(-9.25dB) 0x10 <-- (-7.25dB) 0x11 <-- (-4.50dB) 0x12 <-- 0x13
INFO  | 14:39:44 80 [Router] Updating next-hop for 0x00000011 to 0x00000011 based on traceroute
INFO  | 14:39:44 80 [Router] Updating next-hop for 0x00000012 to 0x00000011 based on traceroute
INFO  | 14:39:44 80 [Router] Updating next-hop for 0x00000013 to 0x00000011 based on traceroute

And for the last node in the route:

INFO  | 14:39:31 67 [Router] Route traced:
0x10 --> 0x11 (-9.25dB) --> 0x12 (-7.25dB) --> 0x13 (-4.50dB)
...(-4.50dB) 0x12 <-- 0x13
INFO  | 14:39:31 67 [Router] Updating next-hop for 0x00000013 to 0x00000013 based on traceroute

@GUVWAF GUVWAF requested a review from thebentern October 5, 2025 15:02
@GUVWAF GUVWAF added the enhancement New feature or request label Oct 5, 2025
@thebentern thebentern merged commit 18ca9e8 into meshtastic:develop Oct 5, 2025
79 of 82 checks passed
@GUVWAF GUVWAF deleted the nextHopTrace branch November 2, 2025 13:31
jeek pushed a commit to jeek/Meshtastic-Exploiteers-Hacker-Pager that referenced this pull request Jun 30, 2026
Update next-hops based on traceroute result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants