+ block in swtich
This commit is contained in:
parent
404d4ff0df
commit
aa1b316767
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue