Skip to main content

write_checksum

Function write_checksum 

Source
pub fn write_checksum(
    message: &mut [u8],
    source: Ipv6Addr,
    destination: Ipv6Addr,
) -> Result<u16>
Expand description

Compute the checksum for message and write it into its header.

Zeroes the field first, so this is safe to call on a message that already carries one.