diff --git a/p4src/static-mapping.p4 b/p4src/static-mapping.p4 index ecddf2b..a4d933b 100644 --- a/p4src/static-mapping.p4 +++ b/p4src/static-mapping.p4 @@ -58,8 +58,8 @@ control MyIngress(inout headers hdr, hdr.ipv4.protocol = PROTO_ICMP; // overwrite generic same protocol assumption switch(hdr.icmp6.type) { - ICMP6_ECHO_REQUEST: hdr.icmp.type = ICMP_ECHO_REQUEST; - ICMP6_ECHO_REPLY: hdr.icmp.type = ICMP_ECHO_REPLY; + ICMP6_ECHO_REQUEST: { hdr.icmp.type = ICMP_ECHO_REQUEST; } + ICMP6_ECHO_REPLY: { hdr.icmp.type = ICMP_ECHO_REPLY; } } /* trigger checksumming */