OS_MBUF_PKTHDR_TO_MBUF

OS_MBUF_PKTHDR_TO_MBUF(__hdr)

Macro used to get a pointer to the mbuf given a pointer to the os mbuf packet header

Arguments

ArgumentsDescription
__hdrPointer to os mbuf packet header (struct os_mbuf_pkthdr *)

Example

    struct os_mbuf *om;
    struct os_mbuf_pkthdr *hdr;

    om = OS_MBUF_PKTHDR_TO_MBUF(hdr);
    os_mbuf_free_chain(om);