diff --git a/p4src/headers.p4 b/p4src/headers.p4 index 75eb938..63b2ef9 100644 --- a/p4src/headers.p4 +++ b/p4src/headers.p4 @@ -134,7 +134,7 @@ struct metadata { task_t task; bit<16> tcp_length; bit<32> cast_length; - bool clength; + bool do_cksum; } #endif \ No newline at end of file diff --git a/p4src/static-mapping.p4 b/p4src/static-mapping.p4 index af06ad6..15576d1 100644 --- a/p4src/static-mapping.p4 +++ b/p4src/static-mapping.p4 @@ -62,7 +62,7 @@ control MyIngress(inout headers hdr, hdr.icmp6.type = ICMP6_ECHO_REPLY; - meta.calc_icmp6_checksum = true; + meta.do_cksum = true; //meta.cast_length = (bit<32>) hdr.ipv6.payload_length; }