diff --git a/p4src/static-mapping.p4 b/p4src/static-mapping.p4 index a4966eb..6e2de63 100644 --- a/p4src/static-mapping.p4 +++ b/p4src/static-mapping.p4 @@ -57,7 +57,7 @@ control MyIngress(inout headers hdr, /* trigger checksumming */ meta.switch_task = TASK_CHECKSUM_ICMP; - meta.chk_icmp = true; + meta.chk_icmp = 1; hdr.icmp6.setInvalid(); @@ -160,7 +160,7 @@ Echo or Echo Reply Message hdr.icmp6.setValid(); hdr.ipv6.next_header = PROTO_ICMP6; - meta.chk_icmp6 = true; + meta.chk_icmp6 = 1; hdr.icmp.setInvalid(); }