diff --git a/p4src/static-mapping.p4 b/p4src/static-mapping.p4 index 993353f..85b7f40 100644 --- a/p4src/static-mapping.p4 +++ b/p4src/static-mapping.p4 @@ -78,7 +78,7 @@ control MyIngress(inout headers hdr, */ /* checksum trigger / content */ - meta.do_cksum = 1; + meta.task = TASK_CHECKSUM_ICMP6_NA; meta.cast_length = (bit<32>) hdr.ipv6.payload_length; } @@ -93,7 +93,7 @@ control MyIngress(inout headers hdr, hdr.icmp6.type = ICMP6_ECHO_REPLY; - meta.do_cksum = 1; + meta.task = TASK_CHECKSUM_ICMP6; meta.cast_length = (bit<32>) hdr.ipv6.payload_length; }