pub fn pseudo_header_checksum(
src: &[u8],
dst: &[u8],
protocol: u8,
transport_data: &[u8],
) -> u16Expand description
Compute the TCP/UDP pseudo-header checksum.
src and dst are the raw IP address bytes (4 bytes for IPv4, 16 for
IPv6). protocol is the IP protocol number. transport_data is the
TCP or UDP header + payload.