MCPcopy Create free account
hub / github.com/celzero/firestack / icmp6Checksum

Function icmp6Checksum

intra/core/wire/icmp6.go:125–143  ·  view source on GitHub ↗

Adapted from gVisor: icmp6Checksum calculates the ICMP checksum over the provided ICMPv6 header (without the IPv6 header), IPv6 src/dst addresses and the payload. The header's existing checksum must be zeroed.

(header []byte, src, dst [16]byte, payload []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

WriteChecksumMethod · 0.85

Calls 1

checksumBytesFunction · 0.85

Tested by

no test coverage detected