Use symbolic names in debugging
This commit is contained in:
parent
764245a914
commit
e48abdb254
2 changed files with 8 additions and 33 deletions
|
|
@ -77,7 +77,7 @@ control MyIngress(inout headers hdr,
|
|||
|
||||
/* NAT46: protocol unspecific changes */
|
||||
action nat46_generic(ipv6_addr_t src, ipv6_addr_t dst) {
|
||||
hdr.ethernet.ethertype=TYPE_IPV6;
|
||||
hdr.ethernet.ethertype = TYPE_IPV6;
|
||||
|
||||
hdr.ipv6.dst_addr = dst;
|
||||
hdr.ipv6.src_addr = src;
|
||||
|
|
@ -334,27 +334,13 @@ control MyIngress(inout headers hdr,
|
|||
/********************** APPLYING TABLES ***********************************/
|
||||
apply {
|
||||
if(hdr.ipv6.isValid()) {
|
||||
icmp6.apply(); /* icmp6 echo, icmp6 ndp */
|
||||
nat64.apply(); /* translating */
|
||||
v6_networks.apply();
|
||||
|
||||
// if(!nat64.apply().hit) { /* v6 -> v4 */
|
||||
// controller_debug_table_id(TABLE_NAT64);
|
||||
// }
|
||||
// if(!v6_networks.apply().hit) {
|
||||
// controller_debug_table_id(TABLE_V6_NETWORKS);
|
||||
// }
|
||||
icmp6.apply(); /* icmp6 echo, icmp6 ndp */
|
||||
nat64.apply(); /* translating */
|
||||
v6_networks.apply(); /* egress / routing */
|
||||
}
|
||||
if(hdr.ipv4.isValid()) {
|
||||
nat46.apply(); /* v4->v6 */
|
||||
nat46.apply(); /* v4->v6 */
|
||||
v4_networks.apply(); /* routing, egress */
|
||||
|
||||
// if(!nat46.apply().hit) { /* v4->v6 */
|
||||
// controller_debug_table_id(TABLE_NAT46);
|
||||
// }
|
||||
// if(!v4_networks.apply().hit) { /* routing, egress */
|
||||
// controller_debug_table_id(TABLE_V4_NETWORKS);
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue