Function gnunet_sys::GNUNET_TUN_calculate_tcp6_checksum[][src]

pub unsafe extern "C" fn GNUNET_TUN_calculate_tcp6_checksum(
    ip: *const GNUNET_TUN_IPv6Header,
    tcp: *mut GNUNET_TUN_TcpHeader,
    payload: *const c_void,
    payload_length: u16
)

Calculate IPv6 TCP checksum.

@param ip ipv6 header fully initialized @param tcp TCP header (initialized except for CRC) @param payload the TCP payload @param payload_length number of bytes of TCP payload