MCPcopy Create free account
hub / github.com/facebook/time / Header

Struct Header

ptp/protocol/protocol.go:75–88  ·  view source on GitHub ↗

Header Table 35 Common PTP message header

Source from the content-addressed store, hash-verified

73
74// Header Table 35 Common PTP message header
75type Header struct {
76 SdoIDAndMsgType SdoIDAndMsgType // first 4 bits is SdoId, next 4 bytes are msgtype
77 Version uint8
78 MessageLength uint16
79 DomainNumber uint8
80 MinorSdoID uint8
81 FlagField uint16
82 CorrectionField Correction
83 MessageTypeSpecific uint32
84 SourcePortIdentity PortIdentity
85 SequenceID uint16
86 ControlField uint8 // the use of this field is obsolete according to IEEE, unless it's ipv4
87 LogMessageInterval LogInterval // see Table 42 Values of logMessageInterval field
88}
89
90const headerSize = 34 // bytes
91

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected