OS_MBUF_USRHDR_LEN(__om)
Macro used to retrieve the length of the user packet header in an mbuf.
Arguments | Description |
---|---|
__om | Pointer to mbuf (struct os_mbuf *). Must be head of chain (i.e. a packet header mbuf) |
uint16_t user_length; struct os_mbuf *om struct user_header *hdr; user_length = OS_MBUF_USRHDR_LEN(om);