GptpSync

GptpSync

class

C++ definition

(no description)

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Extends

Name Type Description
GptpBase class

ieee802.1AS-2020 10.6.2.1, 11.4.2

Fields

Name Type Description
messageType GptpMessageType
flags uint16_t

10.6.2.2.8 flags (Octet2) The value of the bits of the array are defined in Table 10-9. For message types where the bit is not defined in Table 10-9, the value of the bit is set to FALSE. Use ~GptpFlags enums.

chunkLength b
messageLengthField uint16_t

The value is the total number of octets that form the PTP message.

majorSdoId uint8_t

The value is specified in 8.1 for all transmitted PTP messages of a gPTP domain. The value is specified in 11.2.17 for all transmitted PTP messages of the Common Mean Link Delay Service. Any PTP message received for which the value is not one of the values specified in those subclauses shall be ignored.

minorVersionPTP uint8_t

For transmitted messages, the value shall be 1 (see 7.5.4 and 13.3.2.5 of IEEE Std 1588-2019). For received messages, the value is ignored.

versionPTP uint8_t

For transmitted messages, the value shall be 2 (see 7.5.4 and 13.3.2.4 of IEEE Std 1588-2019). For received messages, if the value is not 2, the entire message shall be ignored.

domainNumber uint8_t

The domainNumber for Pdelay_Req, Pdelay_Resp, and Pdelay_Resp_Follow_Up messages shall be 0. The domainNumber for all other PTP messages is as specified in 10.6.2.2.6.

minorSdoId uint8_t

The value is specified in 8.1 for all transmitted PTP messages of a gPTP domain. The value is specified in 11.2.17 for all transmitted PTP messages of the Common Mean Link Delay Service. Any PTP message received for which the value is not one of the values specified in those subclauses shall be ignored. Currently unused in INET

correctionField clocktime_t

The correctionField is the value of the correction as specified in Table 11-6, measured in nanoseconds and multiplied by 2^16. For example, 2.5 ns is represented as 0x0000000000028000.

messageTypeSpecific uint32_t

The value of the messageTypeSpecific field varies, based on the value of the messageType field, as described in Table 10-10.

sourcePortIdentity PortIdentity

The value is the PTP Port identity attribute (see 8.5.2) of the PTP Port that transmits the PTP message.

sequenceId uint16_t

The sequenceId field is assigned as specified in 10.5.7.

controlField uint8_t

The value is 0.

logMessageInterval uint8_t

For Sync and Follow_Up messages, the value is the value of currentLogSyncInterval (see 10.2.5.4 and 10.7.2.3). For Pdelay_Req messages, the value is the value of currentLogPdelayReqInterval. For Pdelay_Resp and Pdelay_Resp_Follow_Up messages, the value is transmitted as 0x7F and ignored on reception.

id int
mutable bool
complete bool
correct bool
properlyRepresented bool
rawBin string[]
rawHex string[]
regionTags SharingRegionTagSet::TagBaseRegionTag[]

Source code

class GptpSync extends GptpBase
{
    messageType = GPTPTYPE_SYNC;
    flags = twoStepFlag;
    chunkLength = GPTP_SYNC_2STEP_PACKET_SIZE;
    messageLengthField = B(GPTP_SYNC_2STEP_PACKET_SIZE).get();
    // clocktime_t originTimestamp; // filled when twoStep flag is FALSE
    // followUpInformationTLV; // filled when twoStep flag is FALSE
}

File: src/inet/linklayer/ieee8021as/GptpPacket.msg