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