Skip to content

Conversation

@Payn
Copy link
Contributor

@Payn Payn commented May 16, 2025

"/proc/net/ipv6_route" doesn't contain tabs like "/proc/net/route" does, but spaces instead.
So

let fields: Vec<&str> = row.split("\t").collect();
is broken and doesn't parse any IPv6 addresses

current:
fields (1): [ "fe800000000000000000000000000000 40 00000000000000000000000000000000 00 00000000000000000000000000000000 00000100 00000001 00000000 00000001 eth0", ]

with fix:
fields (10): [ "fe800000000000000000000000000000", "40", "00000000000000000000000000000000", "00", "00000000000000000000000000000000", "00000100", "00000001", "00000000", "00000001", "eth0", ]

@shellrow
Copy link
Owner

Thanks!

@shellrow shellrow merged commit 540e3ed into shellrow:main May 19, 2025
10 checks passed
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