Method
linuxToNetstackControlMessages
(cm socket.ControlMessages)
Source from the content-addressed store, hash-verified
| 3216 | } |
| 3217 | |
| 3218 | func (s *sock) linuxToNetstackControlMessages(cm socket.ControlMessages) tcpip.SendableControlMessages { |
| 3219 | return tcpip.SendableControlMessages{ |
| 3220 | HasTTL: cm.IP.HasTTL, |
| 3221 | TTL: uint8(cm.IP.TTL), |
| 3222 | HasHopLimit: cm.IP.HasHopLimit, |
| 3223 | HopLimit: uint8(cm.IP.HopLimit), |
| 3224 | } |
| 3225 | } |
| 3226 | |
| 3227 | // updateTimestamp sets the timestamp for SIOCGSTAMP. It should be called after |
| 3228 | // successfully writing packet data out to userspace. |
Tested by
no test coverage detected