stop processing v6 when matching for nat64 session
This commit is contained in:
parent
677e50d81b
commit
7be9c01b48
2 changed files with 23 additions and 6 deletions
|
|
@ -499,6 +499,7 @@ Echo or Echo Reply Message
|
|||
NoAction;
|
||||
}
|
||||
size = ROUTING_TABLE_SIZE;
|
||||
|
||||
default_action = controller_debug_table_id(TABLE_V6_NETWORKS);
|
||||
}
|
||||
|
||||
|
|
@ -522,6 +523,11 @@ Echo or Echo Reply Message
|
|||
if(hdr.ipv6.isValid()) {
|
||||
/* We hit an entry in the dynamic IPv6 range */
|
||||
if(nat64_session.apply().hit) {
|
||||
if(hdr.tcp.isValid()) {
|
||||
if(nat64_tcp_session.apply().hit) {
|
||||
meta.chk_tcp_v4 = 1;
|
||||
}
|
||||
}
|
||||
// if(hdr.icmp6.isValid()) {
|
||||
// /* If this is not a hit => will escalate to controller
|
||||
// * If this is a hit, it has a mapping */
|
||||
|
|
@ -530,12 +536,10 @@ Echo or Echo Reply Message
|
|||
// if(hdr.udp.isValid()) {
|
||||
// nat64_udp_session.apply();
|
||||
// meta.chk_udp_v4 = 1;
|
||||
// }
|
||||
if(hdr.tcp.isValid()) {
|
||||
if(nat64_tcp_session.apply().hit) {
|
||||
meta.chk_tcp_v4 = 1;
|
||||
}
|
||||
}
|
||||
// }
|
||||
|
||||
|
||||
exit; /* no further v6 processing */
|
||||
}
|
||||
|
||||
if(nat64.apply().hit) { /* generic / static nat64 done */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue