Remove inner if

This commit is contained in:
Nico Schottelius 2019-03-27 18:25:05 +01:00
parent 12658b23ac
commit 9a5571fc39

View file

@ -63,9 +63,9 @@ control MyIngress(inout headers hdr,
hdr.icmp.setValid();
hdr.ipv4.protocol = PROTO_ICMP; // overwrite generic same protocol assumption
if(hdr.icmp6.type == ICMP6_ECHO_REQUEST) {
mimic_assign_echo_request();
}
// if(hdr.icmp6.type == ICMP6_ECHO_REQUEST) {
// mimic_assign_echo_request();
// }
// if(hdr.icmp6.type == ICMP6_ECHO_REPLY) {
// hdr.icmp.type = ICMP_ECHO_REPLY;
// }