Use symbolic names in debugging

This commit is contained in:
Nico Schottelius 2019-03-25 14:28:36 +01:00
commit e48abdb254
2 changed files with 8 additions and 33 deletions

View file

@ -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);
// }
}
}
}