+notes; Try shifting the cast into the parser
This commit is contained in:
parent
0bd12260c6
commit
0ca0b94b1c
4 changed files with 22 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue