riot_sys

Function gnrc_pktsnip_search_type

Source
pub unsafe extern "C" fn gnrc_pktsnip_search_type(
    pkt: *mut gnrc_pktsnip_t,
    type_: gnrc_nettype_t,
) -> *mut gnrc_pktsnip_t
Expand description

@brief Searches the packet for a packet snip of a specific type

@param[in] pkt list of packet snips @param[in] type the type to search for

@return the packet snip in @p pkt with @ref gnrc_nettype_t @p type @return NULL, if none of the snips in @p pkt is of @p type