diff --git a/p4src/checksums.p4 b/p4src/checksums.p4 index cec8a91..183380d 100644 --- a/p4src/checksums.p4 +++ b/p4src/checksums.p4 @@ -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