This commit is contained in:
parent
4a280716a6
commit
6e40043c71
|
@ -139,7 +139,7 @@ class L2Controller(object):
|
||||||
self.nat64_map[mode].append({
|
self.nat64_map[mode].append({
|
||||||
"v6_src": v6_net['net'],
|
"v6_src": v6_net['net'],
|
||||||
# "v6_dst": self.info['nat64_prefix'] # static -- not supported ATM
|
# "v6_dst": self.info['nat64_prefix'] # static -- not supported ATM
|
||||||
"v6_dst": v6_dst
|
"v6_dst": v6_dst,
|
||||||
"v4_src": v4_net['net'],
|
"v4_src": v4_net['net'],
|
||||||
"v4_dst": v4_dst
|
"v4_dst": v4_dst
|
||||||
})
|
})
|
||||||
|
|
|
@ -327,14 +327,13 @@ control MyIngress(inout headers hdr,
|
||||||
/********************** APPLYING TABLES ***********************************/
|
/********************** APPLYING TABLES ***********************************/
|
||||||
apply {
|
apply {
|
||||||
if(hdr.ipv6.isValid()) {
|
if(hdr.ipv6.isValid()) {
|
||||||
|
icmp6.apply(); /* icmp6 echo, icmp6 ndp */
|
||||||
icmp6.apply(); /* icmp6 echo, icmp6 ndp */
|
nat64.apply(); /* v6 -> v4 */
|
||||||
nat64.apply(); /* v6 -> v4 */
|
|
||||||
v6_networks.apply(); /* routing, egress */
|
v6_networks.apply(); /* routing, egress */
|
||||||
}
|
}
|
||||||
if(hdr.ipv4.isValid()) {
|
if(hdr.ipv4.isValid()) {
|
||||||
nat46.apply(); /* v4->v6 */
|
nat46.apply(); /* v4->v6 */
|
||||||
v4_networks.apply();
|
v4_networks.apply(); /* routing, egress */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue