ptp_tstmp_locate()
Return a pointer to a memory buffer tag's ptp_tstmp
structure
Synopsis:
#include <qnx/ptp/ptp_mod.h>
struct ptp_tstmp* ptp_tstmp_locate(struct mbuf *m,
uint16_t type)
Arguments:
- m
- The
mbuf
containing the packet. - type
- One of the
MTAG_PTP_*_TSTMP
memory buffer tag types (for values, go to Memory buffer tag (m_tag) macros).
Library:
ptpDescription:
Searches the memory buffer's tags for the given tag type, and returns a pointer to its ptp_tstmp
structure.
Returns:
Pointer to a
ptp_tstmp
on success; otherwise, one of the following:- - NULL - Unable to find a tag of the given type in the
mbuf
.
Page updated: