DPDK 26.07.0-rc1
Data Fields
rte_ptp_hdr Struct Reference

#include <rte_ptp.h>

Data Fields

rte_be16_t msg_length
 
uint8_t domain_number
 
uint8_t minor_sdo_id
 
rte_be16_t flags
 
rte_be64_t correction
 
rte_be32_t msg_type_specific
 
struct rte_ptp_port_id source_port_id
 
rte_be16_t sequence_id
 
uint8_t control
 
int8_t log_msg_interval
 
uint8_t ts_msgtype
 
uint8_t msg_type:4
 
uint8_t ts:4
 
uint8_t ver
 
uint8_t version:4
 
uint8_t minor_version:4
 

Detailed Description

PTP Common Message Header (34 bytes).

Examples
examples/ptp_tap_relay_sw/ptp_tap_relay_sw.c, and examples/ptpclient/ptpclient.c.

Definition at line 83 of file rte_ptp.h.

Field Documentation

◆ ts_msgtype

uint8_t ts_msgtype

transportSpecific | messageType.

Definition at line 86 of file rte_ptp.h.

◆ msg_type

uint8_t msg_type

messageType.

Examples
examples/ptpclient/ptpclient.c.

Definition at line 89 of file rte_ptp.h.

◆ ts

uint8_t ts

transportSpecific.

Definition at line 90 of file rte_ptp.h.

◆ ver

uint8_t ver

minorVersionPTP | versionPTP.

Definition at line 99 of file rte_ptp.h.

◆ version

uint8_t version

versionPTP.

Definition at line 102 of file rte_ptp.h.

◆ minor_version

uint8_t minor_version

minorVersionPTP.

Definition at line 103 of file rte_ptp.h.

◆ msg_length

rte_be16_t msg_length

Total message length in bytes.

Definition at line 110 of file rte_ptp.h.

◆ domain_number

uint8_t domain_number

PTP domain (0-255).

Examples
examples/ptpclient/ptpclient.c.

Definition at line 111 of file rte_ptp.h.

◆ minor_sdo_id

uint8_t minor_sdo_id

minorSdoId (IEEE 1588-2019).

Definition at line 112 of file rte_ptp.h.

◆ flags

rte_be16_t flags

Flag field (see RTE_PTP_FLAG_*).

Definition at line 113 of file rte_ptp.h.

◆ correction

rte_be64_t correction

correctionField (scaled ns, 48.16 fixed).

Definition at line 114 of file rte_ptp.h.

◆ msg_type_specific

rte_be32_t msg_type_specific

messageTypeSpecific.

Definition at line 115 of file rte_ptp.h.

◆ source_port_id

struct rte_ptp_port_id source_port_id

sourcePortIdentity.

Examples
examples/ptpclient/ptpclient.c.

Definition at line 116 of file rte_ptp.h.

◆ sequence_id

rte_be16_t sequence_id

sequenceId.

Examples
examples/ptpclient/ptpclient.c.

Definition at line 117 of file rte_ptp.h.

◆ control

uint8_t control

controlField (deprecated in 1588-2019).

Definition at line 118 of file rte_ptp.h.

◆ log_msg_interval

int8_t log_msg_interval

logMessageInterval.

Definition at line 119 of file rte_ptp.h.


The documentation for this struct was generated from the following file: