⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

compute_icmpv6_checksum

Function compute_icmpv6_checksum 

Source
pub fn compute_icmpv6_checksum(
    src: &[u8; 16],
    dst: &[u8; 16],
    data: &[u8],
) -> u16
Expand description

Compute ICMPv6 checksum using the IPv6 pseudo-header.

The pseudo-header includes: source address (16), destination address (16), upper-layer packet length (4), and next header (4, zero-padded).