link: add ip6tnl tunnel support#36
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces support for IPv6 tunnels (ip6tnl) by implementing configuration parsing, display formatting, and integration tests, alongside updating MAC address string conversion to support IPv6. Feedback on the changes highlights a few critical issues: restoring LinkLayerType::Tunnel6 in the link-layer type matching to prevent display issues, returning early for external tunnels to match standard iproute2 output, and ensuring that the UseOrigTclass and UseOrigFlowlabel flags are correctly set or cleared when parsing tclass and flowlabel values (especially when using 'inherit').
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Introduce support for creating and displaying ip6tnl (IPv4|IPv6 over IPv6) tunnel interfaces via `ip link add type ip6tnl` and `ip link show`. Integration tests included. Signed-off-by: Gris Ge <cnfourt@gmail.com>
Introduce support for creating and displaying ip6tnl (IPv4|IPv6 over IPv6)
tunnel interfaces via
ip link add type ip6tnlandip link show.Integration tests included.