Refactor #n: go back to generic entry point, use if in apply{}
This commit is contained in:
parent
8095189acc
commit
f32ad44e0b
6 changed files with 210 additions and 79 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue