riot_sys::bindgen

Function gnrc_icmpv6_echo_build

Source
pub unsafe extern "C" fn gnrc_icmpv6_echo_build(
    type_: u8,
    id: u16,
    seq: u16,
    data: *mut u8,
    data_len: size_t,
) -> *mut gnrc_pktsnip_t
Expand description

@brief Builds an ICMPv6 echo message of type @p type for sending.

@param[in] type Type of the echo message. Expected to be either ICMPV6_ECHO_REQ or ICMPV6_ECHO_REP. @param[in] id ID for the echo message in host byte-order @param[in] seq Sequence number for the echo message in host byte-order @param[in] data Payload for the echo message @param[in] data_len Length of @p data

@return The echo message on success @return NULL, on failure