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.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;
 | 
			
		||||
        // }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue