ICMP and ICMPv6 are two different protocols. For ICMPv6 checksum callulation see RFC2463 section 2.3 and the documents reffered there.
2 of 2
replaced https://tools.ietf.org/html/rfc with https://www.rfc-editor.org/rfc/rfc
user2084