pub unsafe extern "C" fn os_mbuf_get_pkthdr(
omp: *mut os_mbuf_pool,
pkthdr_len: u8,
) -> *mut os_mbuf
Expand description
Allocate a new packet header mbuf out of the os_mbuf_pool.
@param omp The mbuf pool to allocate out of @param user_pkthdr_len The packet header length to reserve for the caller.
@return A freshly allocated mbuf on success, NULL on failure.