pub unsafe extern "C" fn gnrc_udp_calc_csum(
    hdr: *mut gnrc_pktsnip_t,
    pseudo_hdr: *mut gnrc_pktsnip_t
) -> c_int
Expand description

@brief Calculate the checksum for the given packet

@param[in] hdr Pointer to the UDP header @param[in] pseudo_hdr Pointer to the network layer header

@return 0 on success @return -EBADMSG if @p hdr is not of type GNRC_NETTYPE_UDP @return -EFAULT if @p hdr or @p pseudo_hdr is NULL @return -ENOENT if gnrc_pktsnip_t::type of @p pseudo_hdr is not known