From ad8988bb419e68b1272e4d28e672a24e3064c88c Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 24 Jul 2019 12:01:47 +0200 Subject: [PATCH] Try to add real headers --- p4src/minip4_solution.p4 | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) 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