Function esp_idf_sys::os_mbuf_widen

source ·
pub unsafe extern "C" fn os_mbuf_widen(
    om: *mut os_mbuf,
    off: u16,
    len: u16,
) -> c_int
Expand description

Increases the length of an mbuf chain by inserting a gap at the specified offset. The contents of the gap are indeterminate. If the mbuf chain contains a packet header, its total length is increased accordingly.

This function never frees the provided mbuf chain.

@param om The mbuf chain to widen. @param off The offset at which to insert the gap. @param len The size of the gap to insert.

@return 0 on success; SYS_[…] error code on failure.