Repository navigation
Include interface and MPLS details in text reports - #146
Merged
Merged
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
The focused formatting changes have no identified blocking issues; tests were inspected but not executed.
0 open findings
What changed in this PR
Adds interface and MPLS metadata to text reports, preserving context previously available only in hop popups and JSON.
Changes:
- Prints extension details for all responders in deterministic IP order.
- Sanitizes interface names and adds report-formatting tests.
- Documents the additional report details.
| File | Description |
|---|---|
| src/export/report.rs | Formats extension details and adds regression tests. |
| README.md | Notes interface and MPLS support in text reports. |
| docs/FEATURES.md | Documents extension fields and replay support. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
lance0
marked this pull request as ready for review
October 16, 2026 15:48
This was referenced Oct 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Text reports previously omitted the interface and MPLS information available in the hop popup and JSON, losing useful context when reports were shared.
Add indented extension lines below each hop's statistics. RFC 5837 lines include interface role, name, address, ifIndex and MTU when available; MPLS lines include the complete label stack, traffic class, bottom-of-stack flag and TTL. Each line identifies its responder IP, and all responders are sorted by address for deterministic ECMP output. Interface names are sanitized before writing terminal output. Hops without extensions retain their existing report rows.
Example:
Validation:
cargo build --locked,cargo test --locked,cargo clippy --locked --all-targets -- -D warnings,cargo fmt -- --check, and rustdoc with warnings denied. Tests cover every interface role, IPv6, long names, secondary responders, deterministic ordering, absent metadata, control characters, and existing hop statistics. README and feature documentation describe the report details.Refs #134.