Remove inner if
This commit is contained in:
parent
12658b23ac
commit
9a5571fc39
1 changed files with 3 additions and 3 deletions
|
@ -63,9 +63,9 @@ control MyIngress(inout headers hdr,
|
||||||
hdr.icmp.setValid();
|
hdr.icmp.setValid();
|
||||||
hdr.ipv4.protocol = PROTO_ICMP; // overwrite generic same protocol assumption
|
hdr.ipv4.protocol = PROTO_ICMP; // overwrite generic same protocol assumption
|
||||||
|
|
||||||
if(hdr.icmp6.type == ICMP6_ECHO_REQUEST) {
|
// if(hdr.icmp6.type == ICMP6_ECHO_REQUEST) {
|
||||||
mimic_assign_echo_request();
|
// mimic_assign_echo_request();
|
||||||
}
|
// }
|
||||||
// if(hdr.icmp6.type == ICMP6_ECHO_REPLY) {
|
// if(hdr.icmp6.type == ICMP6_ECHO_REPLY) {
|
||||||
// hdr.icmp.type = ICMP_ECHO_REPLY;
|
// hdr.icmp.type = ICMP_ECHO_REPLY;
|
||||||
// }
|
// }
|
||||||
|
|
Loading…
Reference in a new issue