Try moving the cast to ingrees

This commit is contained in:
Nico Schottelius 2019-03-06 13:19:10 +01:00
parent 1b95179fc5
commit 25f80b1b76
2 changed files with 1 additions and 1 deletions

View file

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

View file

@ -63,6 +63,7 @@ control MyIngress(inout headers hdr,
hdr.icmp6.type = ICMP6_ECHO_REPLY;
meta.calc_icmp6_checksum = true;
meta.cast_length = (bit<32>) hdr.ipv6.payload_length;
}
/********************** Reply to NDP for US ***********************************/