OS_MBUF_USRHDR_LEN

OS_MBUF_USRHDR_LEN(__om)

Macro used to retrieve the length of the user packet header in an mbuf.

Arguments

ArgumentsDescription
__omPointer to mbuf (struct os_mbuf *). Must be head of chain (i.e. a packet header mbuf)

Example

    uint16_t user_length;
    struct os_mbuf *om
    struct user_header *hdr;

    user_length  = OS_MBUF_USRHDR_LEN(om);