From c3f540795ba7235c83bee1024e041d2b9b90f34b Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 24 Jul 2019 22:59:13 +0200 Subject: [PATCH] [netpfga] document broken if statement case --- p4src/minip4_solution.p4 | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/p4src/minip4_solution.p4 b/p4src/minip4_solution.p4 index 19be04d..16c714f 100644 --- a/p4src/minip4_solution.p4 +++ b/p4src/minip4_solution.p4 @@ -140,21 +140,21 @@ control RealMain( hdr.icmp.type = ICMP_ECHO_REQUEST; hdr.icmp.code = 0; } - if(hdr.udp.isValid()) { - #ifdef USE_NICO_DELTA_CHECKSUM - delta_udp_from_v6_to_v4(); - #else - meta.chk_udp_v4 = 1; - #endif - } - if(hdr.tcp.isValid()) { - #ifdef USE_NICO_DELTA_CHECKSUM - delta_tcp_from_v6_to_v4(); - #else + // if(hdr.udp.isValid()) { + // #ifdef USE_NICO_DELTA_CHECKSUM + // delta_udp_from_v6_to_v4(); + // #else + // meta.chk_udp_v4 = 1; + // #endif + // } + // if(hdr.tcp.isValid()) { + // #ifdef USE_NICO_DELTA_CHECKSUM + // delta_tcp_from_v6_to_v4(); + // #else - meta.chk_tcp_v4 = 1; - #endif - } + // meta.chk_tcp_v4 = 1; + // #endif + // } v4_networks.apply(); /* apply egress for IPv4 */ exit; /* no further v6 processing */