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

Function syncPkt

ptp/simpleclient/client_test.go:104–116  ·  view source on GitHub ↗
(seq int)

Source from the content-addressed store, hash-verified

102}
103
104func syncPkt(seq int) *ptp.SyncDelayReq {
105 l := binary.Size(ptp.Header{}) + binary.Size(ptp.SyncDelayReqBody{})
106 return &ptp.SyncDelayReq{
107 Header: ptp.Header{
108 SdoIDAndMsgType: ptp.NewSdoIDAndMsgType(ptp.MessageSync, 0),
109 Version: ptp.Version,
110 SequenceID: uint16(seq),
111 MessageLength: uint16(l),
112 FlagField: ptp.FlagUnicast,
113 LogMessageInterval: 0x7f,
114 },
115 }
116}
117func fwupPkt(seq int) *ptp.FollowUp {
118 l := binary.Size(ptp.FollowUp{})
119 return &ptp.FollowUp{

Callers 1

TestClientRunFunction · 0.70

Calls 1

SizeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…