Try to prevent underrun / possible off by one

Checking for bigger value
This commit is contained in:
Nico Schottelius 2019-07-13 18:05:50 +02:00
commit 7599ebb89d
3 changed files with 18 additions and 13 deletions

View file

@ -15,6 +15,7 @@
meta.chk_tcp_v4 = 0;
meta.v4sum = 0;
meta.v6sum = 0;
meta.headerdiff = 0;
packet.extract(hdr.ethernet);
transition select(hdr.ethernet.ethertype){