DCMD_PTPD_INFO
QNX SDP8.0Devctl and Ioctl CommandsDeveloper
Get the peer delay and neighbor rate ratio
Synopsis:
#include <dcmd_ptpd.h>
#define DCMD_PTPD_INFO   __DIOF(_DCMD_NET, 13, MyPTPDINFOInternal )
Arguments to devctl():
| Argument | Value | 
|---|---|
| filedes | A file descriptor that you obtained by opening /dev/ptpd | 
| dcmd | DCMD_PTPD_INFO | 
| dev_data_ptr | A pointer to a MyPTPDINFOInternal structure | 
| n_bytes | sizeof(MyPTPDINFOInternal) | 
| dev_info_ptr | NULL | 
Description:
This command gets information about the Precision Time Protocol.
Note: 
 To use this command, you must specify the -K option when you start
          ptpd2. 
Input:
None.
Output:
A filled-in MyPTPDINFOInternal structure, which is defined in <dcmd_ptpd.h> as follows:
typedef struct {
	int64_t peerdelay;
	int32_t neighborrateratio;
	uint8_t	neighborrateratio_valid;
} MyPTPDINFOInternal;
The members include:
- peerdelay
 - The delay calculated from the timestamps of messages sent between two peers.
 - neighborrateratio
 - The neighbor rate ratio, which is used to adjust for the differences in frequencies between the clocks in adjacent devices on the network.
 - neighborrateratio_valid
 - Nonzero if the neighborrateratio member is valid.
 
Example:
See also:
DCMD_PTPD_DELAYMS, DCMD_PTPD_DELAYSM, DCMD_PTPD_GET_PDELAY_INTERVAL, DCMD_PTPD_GET_TAI_UTC_OFFSET, DCMD_PTPD_GET_TIME, DCMD_PTPD_SEND_SIGNALING_MSG, DCMD_PTPD_SET_PDELAY_INTERVAL, DCMD_PTPD_STATUS
devctl() in the QNX OS C Library Reference
ptpd2 in the Utilities Reference
Page updated: 
