pub unsafe extern "C" fn gnrc_netif_hdr_build(
src: *const u8,
src_len: u8,
dst: *const u8,
dst_len: u8,
) -> *mut gnrc_pktsnip_t
Expand description
@brief Builds a generic network interface header for sending and adds it to the packet buffer.
@param[in] src Source address for the header. Can be NULL if not known or required. @param[in] src_len Length of @p src. Can be 0 if not known or required. @param[in] dst Destination address for the header. Can be NULL if not known or required. @param[in] dst_len Length of @p dst. Can be 0 if not known or required.
@return The generic network layer header on success. @return NULL on error.