Skip to main content

checksum_correction

Function checksum_correction 

Source
fn checksum_correction(actual: u16, desired: u16) -> u16
Expand description

Compute a 2-byte correction word that, when placed in the payload (replacing the zero placeholder), forces the UDP checksum to desired.