OS_MBUF_USRHDR

OS_MBUF_USRHDR(__om)

Macro used to get a pointer to the user packet header of an mbuf.

Arguments

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

Example

    struct os_mbuf *om
    struct user_header *hdr;

    hdr = OS_MBUF_USRHDR(om);