Add IPv6 support for LinuxContainer by yordsel · Pull Request #519 · apple/containerization · GitHub
Skip to content

Add IPv6 support for LinuxContainer#519

Open
yordsel wants to merge 1 commit into
apple:mainfrom
yordsel:feature/ipv6-support
Open

Add IPv6 support for LinuxContainer#519
yordsel wants to merge 1 commit into
apple:mainfrom
yordsel:feature/ipv6-support

Conversation

@yordsel

@yordsel yordsel commented Feb 6, 2026

Copy link
Copy Markdown

Summary

  • Add IPv6 address and route configuration to LinuxContainer, matching existing LinuxPod functionality
  • Extend NetlinkSession with IPv6 support methods (addressAdd6, routeAddDefault6)
  • Update vminitd gRPC handlers to support IpAddrAdd6 and IpRouteAdd6 requests
  • Add ipv6Gateway field to NATInterface and NATNetworkInterface protocols

Details

LinuxContainer was missing IPv6 configuration that LinuxPod already had. This adds the missing calls to configure IPv6 addresses and routes on the network interface inside Linux containers when IPv6 is available.

The implementation follows the existing IPv4 patterns and reuses internal helper methods to avoid code duplication.

Test plan

  • Verified IPv6 connectivity from host to container (ping6)
  • Verified IPv6 connectivity between containers
  • Verified DNS resolution for both A and AAAA records
  • Verified backward compatibility with IPv4-only networks

🤖 Generated with Claude Code

LinuxContainer was missing IPv6 configuration that LinuxPod already had.
This adds the missing calls to configure IPv6 addresses and routes on
container network interfaces.

Changes:
- LinuxContainer.swift: Add IPv6 address and route configuration
- Interface/NATInterface/NATNetworkInterface: IPv6 fields
- SandboxContext proto/grpc: IPv6 methods for guest agent
- VirtualMachineAgent/Vminitd: IPv6 implementation
- NetlinkSession: IPv6 netlink support

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@yordsel yordsel force-pushed the feature/ipv6-support branch from f4e9940 to 2f13e83 Compare February 6, 2026 22:29
@jglogan

jglogan commented Feb 7, 2026

Copy link
Copy Markdown
Contributor

@jglogan jglogan self-requested a review February 9, 2026 17:35
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