IPToSockaddr converts IP + port into a socket address Somewhat copy from https://github.com/golang/go/blob/16cd770e0668a410a511680b2ac1412e554bd27b/src/net/ipsock_posix.go#L145
(ip net.IP, port int)
| 186 | return bbuf, boob, saddr, nil |
| 187 | } |
| 188 | |
| 189 | // ReadRXTimestamp returns HW timestamp from CMSG buffer |
| 190 | func ReadRXTimestamp(oob []byte, boob int) (time.Time, error) { |
| 191 | return socketControlMessageTimestamp(oob, boob) |
| 192 | } |
| 193 | |
| 194 | // ReadSocketDrops returns number of dropped packets from CMSG buffer |
| 195 | func ReadSocketDrops(oob []byte, boob int) uint32 { |
| 196 | return socketControlMessageDrops(oob, boob) |
| 197 | } |
| 198 | |
| 199 | // IPToSockaddr converts IP + port into a socket address |
| 200 | // Somewhat copy from https://github.com/golang/go/blob/16cd770e0668a410a511680b2ac1412e554bd27b/src/net/ipsock_posix.go#L145 |
no outgoing calls
searching dependent graphs…