feat: Add IPv6 support and improve interface display#8
Open
chofstede wants to merge 1 commit intovermaden:masterfrom
Open
feat: Add IPv6 support and improve interface display#8chofstede wants to merge 1 commit intovermaden:masterfrom
chofstede wants to merge 1 commit intovermaden:masterfrom
Conversation
…displaying of IPv6
Owner
|
Thank You for this addon - I will find some time next week to seat on it. |
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.
This PR updates jmore to support displaying IPv6 addresses alongside IPv4.
Key Changes:
Dual Stack: Now captures inet6 output from netstat (both on host and inside jails).
Config Parsing: Added support for parsing ip6.addr from configuration files.
Filtering: explicit filtering for loopback (::1) and link-local (fe80::) addresses to keep the output clean.
Deduplication: Added sort -u to interface detection to prevent duplicate interface names (e.g., vnet0/vnet0) when an interface has multiple IP families.
This approach is way less invasive than my previous attempt (minimal changes) and keeps compatibility to IPv4-only hosts without any major formatting or logic changes.
Example Output: