++notes; try to cast & save payload_length in ingress

This commit is contained in:
Nico Schottelius 2019-03-06 17:37:30 +01:00
commit ee62eb32c3
2 changed files with 28 additions and 2 deletions

View file

@ -63,7 +63,7 @@ control MyIngress(inout headers hdr,
hdr.icmp6.type = ICMP6_ECHO_REPLY;
meta.do_cksum = 1;
//meta.cast_length = (bit<32>) hdr.ipv6.payload_length;
meta.cast_length = (bit<32>) hdr.ipv6.payload_length;
}
/* this needs SESSIONS!!