(seq int)
| 102 | } |
| 103 | |
| 104 | func 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 | } |
| 117 | func fwupPkt(seq int) *ptp.FollowUp { |
| 118 | l := binary.Size(ptp.FollowUp{}) |
| 119 | return &ptp.FollowUp{ |
no test coverage detected
searching dependent graphs…