riot_sys

Function gnrc_icmpv6_build

Source
pub unsafe extern "C" fn gnrc_icmpv6_build(
    next: *mut gnrc_pktsnip_t,
    type_: u8,
    code: u8,
    size: size_t,
) -> *mut gnrc_pktsnip_t
Expand description

@brief Builds an ICMPv6 message for sending.

@param[in] next Next packet snip in the new packet. @param[in] type Type for the ICMPv6 message. @param[in] code Code for the ICMPv6 message. @param[in] size Size of the ICMPv6 message (needs do be > sizeof(icmpv6_hdr_t)).

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