+notes; Try shifting the cast into the parser

This commit is contained in:
Nico Schottelius 2019-03-06 13:12:06 +01:00
commit 0ca0b94b1c
4 changed files with 22 additions and 7 deletions

View file

@ -37,6 +37,7 @@ parser MyParser(packet_in packet,
state ipv6 {
packet.extract(hdr.ipv6);
meta.tcp_length = hdr.ipv6.payload_length;
meta.cast_length = (<bit32>) hdr.ipv6.payload_length;
transition select(hdr.ipv6.next_header){
PROTO_TCP: tcp;