Refactor #n: go back to generic entry point, use if in apply{}

This commit is contained in:
Nico Schottelius 2019-03-30 14:59:46 +01:00
commit f32ad44e0b
6 changed files with 210 additions and 79 deletions

View file

@ -13,6 +13,11 @@ parser MyParser(packet_in packet,
inout standard_metadata_t standard_metadata) {
state start {
meta.chk_icmp = false;
meta.chk_icmp6 = false;
meta.chk_icmp6_na_ns = false;
packet.extract(hdr.ethernet);
transition select(hdr.ethernet.ethertype){
TYPE_IPV4: ipv4;