Use new style includes
This commit is contained in:
		
					parent
					
						
							
								1a39c35e3b
							
						
					
				
			
			
				commit
				
					
						3ccbcd767c
					
				
			
		
					 1 changed files with 12 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -3,7 +3,18 @@
 | 
			
		|||
#include <v1model.p4>
 | 
			
		||||
 | 
			
		||||
#include "headers.p4"
 | 
			
		||||
#include "parsers.p4"
 | 
			
		||||
 | 
			
		||||
parser MyParser(packet_in packet,
 | 
			
		||||
    out       headers hdr,
 | 
			
		||||
    inout     metadata meta,
 | 
			
		||||
    inout     standard_metadata_t standard_metadata) {
 | 
			
		||||
 | 
			
		||||
    #include "parsers.p4"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
control MyDeparser(packet_out packet, in headers hdr) {
 | 
			
		||||
    #include "deparser.p4"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
control MyIngress(inout headers hdr,
 | 
			
		||||
    inout metadata meta,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue