MCPcopy
hub / github.com/google/gvisor / linuxToNetstackControlMessages

Method linuxToNetstackControlMessages

pkg/sentry/socket/netstack/netstack.go:3218–3225  ·  view source on GitHub ↗
(cm socket.ControlMessages)

Source from the content-addressed store, hash-verified

3216}
3217
3218func (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.

Callers 1

SendMsgMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected