[p4] try to include type+code in the checksum part

This commit is contained in:
Nico Schottelius 2019-03-07 00:33:41 +01:00
parent 126434a6b9
commit 81bf368279
1 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,9 @@ control MyComputeChecksum(inout headers hdr, inout metadata meta) {
hdr.ipv6.dst_addr, /* 128 */
meta.cast_length, /* 32 */
24w0, /* 24 0's */
PROTO_ICMP6 /* 8 */
PROTO_ICMP6, /* 8 */
hdr.icmp6.type, /* 8 */
hdr.icmp6.code /* 8 */
},
hdr.icmp6.checksum,
HashAlgorithm.csum16