Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nat46: Enable ipv6 containers to talk to an ipv4 container
If destination is a v4 mapped v6 address ::FFFF:<a.b.c.d> use nat46 to talk to the v4 container. ENABLE_NAT46 depends on LXC_IPV4 and CONNTRACK features. packet flow: v6 container(lxc1) ---------- nat64 -----------> v4 container (lxc2) v6 container(lxc1) <--------- nat46 ------------ v4 container (lxc2) lxc1 v4 conntrack will have needs_nat46=1 in lxc2 -> lxc1 direction. Address @tgraf review comments. 1. LXC_NAT46 to represent combination of ENABLE_NAT46, ENABLE_IPV4 & CONNTRACK 2. rename isMappedIPv6Addr to ipv6_addr_is_mapped and move it to ipv6.h 3. Move ipv6_policy after v46 nat to a tail call. 4. Resolve merge conflict by renaming 07-nat46.sh to 08-nat46.sh 5. Cleanups suggested by @tgraf 6. Move NAT46 processing into its own tail calls to keep the insturction complexity under 4K. 7. Move tail_ipv6_to_ipv4 and tail_ipv4_to_ipv6 to bpf_lxc.c Acked-by: Thomas Graf <thomas@cilium.io> Signed-off-by: Madhu Challa madhu@cilium.io
- Loading branch information
Showing
13 changed files
with
196 additions
and
68 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.