diff --git a/p4src/minip4_solution.p4 b/p4src/minip4_solution.p4 index 74adcc8..bed75ed 100644 --- a/p4src/minip4_solution.p4 +++ b/p4src/minip4_solution.p4 @@ -2,16 +2,18 @@ #include #include "headers.p4" -typedef bit<48> EthAddr_t; -header Ethernet_h { - EthAddr_t dstAddr; - EthAddr_t srcAddr; - bit<16> etherType; -} +// typedef bit<48> EthAddr_t; +// header Ethernet_h { +// EthAddr_t dstAddr; +// EthAddr_t srcAddr; +// bit<16> etherType; +// } -struct Parsed_packet { - Ethernet_h ethernet; -} +typedef struct headers Parsed_packet; + +//struct Parsed_packet { +// Ethernet_h ethernet; +//} // user defined metadata: can be used to share information between // TopParser, TopPipe, and TopDeparser