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

@brief Calculates the checksum for a header.

@param[in] hdr The header the checksum should be calculated for. @param[in] pseudo_hdr The header the pseudo header shall be generated from. NULL if none is needed.

@return 0, on success. @return -EINVAL, if @p pseudo_hdr is NULL but a pseudo header was required. @return -ENOENT, if @ref net_gnrc_netreg does not know how to calculate checksum for gnrc_pktsnip_t::type of @p hdr.