ptp_rx()

Return a packet's receive (Rx) timestamp

Synopsis:

#include <qnx/ptp/ptp_mod.h>
int ptp_rx(struct ptp_ctx *ctx,
           struct mbuf *m,
           struct ptp_time *ptp_time)

Arguments:

ctx
The driver's PTP context.
m
The mbuf containing the packet.
ptp_time
The timestamp returned by the driver.

Library:

ptp

Description:

Used to return an Rx timestamp to the stack. It adds the timestamp to the memory buffer's rcv_tstmp field, and a MTAG_PTP_RX_TSTMP tag to the packet's tags.

Returns:

EOK on success; otherwise, one of the following:
  • ENOMEM - Unable to allocate memory for the MTAG_PTP_RX_TSTMP tag.
Page updated: