This commit is contained in:
Nico Schottelius 2019-03-25 12:13:10 +01:00
parent 4a280716a6
commit 6e40043c71
2 changed files with 5 additions and 6 deletions

View File

@ -139,7 +139,7 @@ class L2Controller(object):
self.nat64_map[mode].append({
"v6_src": v6_net['net'],
# "v6_dst": self.info['nat64_prefix'] # static -- not supported ATM
"v6_dst": v6_dst
"v6_dst": v6_dst,
"v4_src": v4_net['net'],
"v4_dst": v4_dst
})

View File

@ -327,14 +327,13 @@ control MyIngress(inout headers hdr,
/********************** APPLYING TABLES ***********************************/
apply {
if(hdr.ipv6.isValid()) {
icmp6.apply(); /* icmp6 echo, icmp6 ndp */
nat64.apply(); /* v6 -> v4 */
icmp6.apply(); /* icmp6 echo, icmp6 ndp */
nat64.apply(); /* v6 -> v4 */
v6_networks.apply(); /* routing, egress */
}
if(hdr.ipv4.isValid()) {
nat46.apply(); /* v4->v6 */
v4_networks.apply();
nat46.apply(); /* v4->v6 */
v4_networks.apply(); /* routing, egress */
}
}
}