Skip to content

fix: capture gateway IP for hop 2 failures when traceroute times out - #18

Merged
zoosky merged 1 commit into
mainfrom
fix/capture-gateway-ip-for-hop2-failures
Jan 18, 2026
Merged

fix: capture gateway IP for hop 2 failures when traceroute times out#18
zoosky merged 1 commit into
mainfrom
fix/capture-gateway-ip-for-hop2-failures

Conversation

@zoosky

@zoosky zoosky commented Jan 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fix failing_hop_ip not being captured for ISP issues at hop 2 when traceroute times out
  • When gateway is reachable but traceroute shows all timeouts, use gateway IP as the last responding hop

Changes

  • src/main.rs: Added fallback to use gateway IP when identify_failing_hop() returns None for IspIssue at hop 2

Test Plan

  • All 60 tests pass
  • QA checks pass (fmt, clippy, docs, release build)
  • Future outages will now display: Hop 2 (after 10.0.0.1) - ISP Modem instead of just Hop 2 (ISP Modem)

When ISP issue is diagnosed at hop 2 because gateway was reachable but
traceroute completely timed out (all * * *), identify_failing_hop()
returned None since there were no responding hops. The gateway IP
fallback was only implemented for Healthy and Unknown cases.

Now uses gateway IP as last responding hop when identify_failing_hop()
returns None for IspIssue at hop 2 with a reachable gateway.
@zoosky
zoosky merged commit d7b1d99 into main Jan 18, 2026
4 checks passed
@zoosky
zoosky deleted the fix/capture-gateway-ip-for-hop2-failures branch January 18, 2026 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant