Skip to content

link: add ip6tnl tunnel support#36

Merged
cathay4t merged 1 commit into
rust-netlink:mainfrom
cathay4t:main
Jun 12, 2026
Merged

link: add ip6tnl tunnel support#36
cathay4t merged 1 commit into
rust-netlink:mainfrom
cathay4t:main

Conversation

@cathay4t

Copy link
Copy Markdown
Member

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.

@gemini-code-assist gemini-code-assist Bot 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.

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.

Comment thread src/ip/link/show.rs
Comment thread src/ip/link/ifaces/iptun.rs
Comment thread src/ip/link/ifaces/iptun.rs
Comment thread src/ip/link/ifaces/iptun.rs
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>
@cathay4t
cathay4t merged commit 40ad938 into rust-netlink:main Jun 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant