ReadRXTimestamp returns HW timestamp from CMSG buffer
(oob []byte, boob int)
| 175 | return 0, nil, time.Time{}, err |
| 176 | } |
| 177 | return bbuf, saddr, timestamp, nil |
| 178 | } |
| 179 | |
| 180 | // ReadPacketWithCMsgBuf writes byte packet into provided packet and cmsg buffer, and returns number of bytes copied to the buffers |
| 181 | func ReadPacketWithCMsgBuf(connFd int, buf, oob []byte) (int, int, unix.Sockaddr, error) { |
| 182 | bbuf, boob, _, saddr, err := unix.Recvmsg(connFd, buf, oob, 0) |
no test coverage detected
searching dependent graphs…