pub unsafe extern "C" fn gnrc_tcp_hdr_build(
    payload: *mut gnrc_pktsnip_t,
    src: u16,
    dst: u16
) -> *mut gnrc_pktsnip_t
Expand description

@brief Adds a TCP header to a given payload.

@param[in] payload Payload that follows the TCP header. @param[in] src Source port number. @param[in] dst Destination port number.

@return Not NULL on success. @return NULL if TCP header was not allocated.