Accept in sub-parser

This commit is contained in:
Nico Schottelius 2019-07-24 09:57:16 +02:00
parent 4eabf8cc38
commit 89161e260e

View file

@ -35,9 +35,10 @@ parser RealParser(
inout sume_metadata_t standard_metadata) { inout sume_metadata_t standard_metadata) {
state start { state start {
packet.extract(hdr.ethernet); packet.extract(hdr.ethernet);
meta.unused = 0; meta.unused = 0;
digest_data.unused = 0; digest_data.unused = 0;
transition accept;
} }
} }