Contents

SetHeadroom

Changes the number of bytes to reserve at the front of the packet’s buffer to the specified value.

Declaration

virtual kern_return_t SetHeadroom(uint8_t headroom);

Parameters

  • headroom:

    The new headroom value, specified in bytes.

Return Value

kIOReturnSuccess on success, or another value if an error occurred.

See Also

Configuring the Packet State Information