pub unsafe extern "C" fn gnrc_tcp_calc_csum(
hdr: *const gnrc_pktsnip_t,
pseudo_hdr: *const gnrc_pktsnip_t,
) -> c_int
Expand description
@brief Calculate and set checksum in TCP header.
@param[in] hdr Gnrc_pktsnip that contains TCP header. @param[in] pseudo_hdr Gnrc_pktsnip that contains network layer header.
@return 0 on success. @return -EFAULT if @p hdr or pseudo_hdr were NULL @return -EBADMSG if @p hdr is not of type GNRC_NETTYPE_TCP @return -ENOENT if @p pseudo_hdr protocol is unsupported.