Eliminate side effects in icmpv6_csum and make it public