Function gnunet_sys::GNUNET_TUN_calculate_tcp4_checksum [−][src]
pub unsafe extern "C" fn GNUNET_TUN_calculate_tcp4_checksum(
ip: *const GNUNET_TUN_IPv4Header,
tcp: *mut GNUNET_TUN_TcpHeader,
payload: *const c_void,
payload_length: u16
)
Calculate IPv4 TCP checksum.
@param ip ipv4 header fully initialized @param tcp TCP header (initialized except for CRC) @param payload the TCP payload @param payload_length number of bytes of TCP @a payload