Skip to content

Include interface and MPLS details in text reports - #146

Merged
lance0 merged 1 commit into
masterfrom
feat/report-icmp-extensions
Oct 16, 2026
Merged

lance0 merged 1 commit into
masterfrom
feat/report-icmp-extensions

Conversation

@lance0

@lance0 lance0 commented Oct 16, 2026

Copy link
Copy Markdown
Owner

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:

     MPLS [192.0.2.1]: 416760 (TC 3, S 1, TTL 1)
     Interface [192.0.2.1] Incoming: "Ethernet1@router", IP 2001:db8::1, ifIndex 1, MTU 1500

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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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
lance0 marked this pull request as ready for review October 16, 2026 15:48
@lance0
lance0 merged commit 8d2c90a into master Oct 16, 2026
7 checks passed
@lance0
lance0 deleted the feat/report-icmp-extensions branch October 16, 2026 15:48
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.

2 participants