diff --git a/p4src/checksums.p4 b/p4src/checksums.p4 index 6fb70cb..ca4575e 100644 --- a/p4src/checksums.p4 +++ b/p4src/checksums.p4 @@ -29,7 +29,7 @@ control MyComputeChecksum(inout headers hdr, inout metadata meta) { hdr.ipv6.payload_length, /* 16 -> should be 32 according to RFC2460 - also static number? */ 24w0, /* 24 0's */ PROTO_ICMP6 /* 8 */ - } + }, hdr.icmp6.checksum, HashAlgorithm.csum16); }