pub unsafe extern "C" fn pbuf_alloc_reference(
    payload: *mut c_void,
    length: u16,
    type_: u32
) -> *mut pbuf