From 9a5571fc39346e182be2faaf9feb10370871bcd5 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 27 Mar 2019 18:25:05 +0100 Subject: [PATCH] Remove inner if --- p4src/static-mapping.p4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p4src/static-mapping.p4 b/p4src/static-mapping.p4 index bf46ec6..f05523b 100644 --- a/p4src/static-mapping.p4 +++ b/p4src/static-mapping.p4 @@ -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; // }