pub unsafe extern "C" fn gnrc_icmpv6_calc_csum(
hdr: *mut gnrc_pktsnip_t,
pseudo_hdr: *mut gnrc_pktsnip_t,
) -> c_int
Expand description
@brief Calculates the checksum for an ICMPv6 packet.
@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 gnrc_pktsnip_t::type of @p pkt was not GNRC_NETTYPE_ICMPV6 @return -ENOENT, if gnrc_pktsnip_t::type of @p pseudo_hdr was not GNRC_NETTYPE_IPV6