+ block in swtich

This commit is contained in:
Nico Schottelius 2019-03-27 18:02:42 +01:00
parent 404d4ff0df
commit aa1b316767

View file

@ -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 */