Try to add real headers
This commit is contained in:
		
					parent
					
						
							
								13ce721862
							
						
					
				
			
			
				commit
				
					
						ad8988bb41
					
				
			
		
					 1 changed files with 11 additions and 9 deletions
				
			
		| 
						 | 
					@ -2,16 +2,18 @@
 | 
				
			||||||
#include <sume_switch.p4>
 | 
					#include <sume_switch.p4>
 | 
				
			||||||
#include "headers.p4"
 | 
					#include "headers.p4"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
typedef bit<48> EthAddr_t;
 | 
					// typedef bit<48> EthAddr_t;
 | 
				
			||||||
header Ethernet_h {
 | 
					// header Ethernet_h {
 | 
				
			||||||
    EthAddr_t dstAddr;
 | 
					//     EthAddr_t dstAddr;
 | 
				
			||||||
    EthAddr_t srcAddr;
 | 
					//     EthAddr_t srcAddr;
 | 
				
			||||||
    bit<16> etherType;
 | 
					//     bit<16> etherType;
 | 
				
			||||||
}
 | 
					// }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct Parsed_packet {
 | 
					typedef struct headers Parsed_packet;
 | 
				
			||||||
    Ethernet_h ethernet;
 | 
					
 | 
				
			||||||
}
 | 
					//struct Parsed_packet {
 | 
				
			||||||
 | 
					//    Ethernet_h ethernet;
 | 
				
			||||||
 | 
					//}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// user defined metadata: can be used to share information between
 | 
					// user defined metadata: can be used to share information between
 | 
				
			||||||
// TopParser, TopPipe, and TopDeparser
 | 
					// TopParser, TopPipe, and TopDeparser
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue