package tcp
import "gvisor.dev/gvisor/pkg/tcpip/internal/tcp"
Package tcp contains internal type definitions that are not expected to be used by anyone else outside pkg/tcpip.
Index ¶
Types ¶
type TSOffset ¶
type TSOffset struct {
// contains filtered or unexported fields
}
TSOffset is an offset applied to the value of the TSVal field in the TCP Timestamp option.
+stateify savable
func NewTSOffset ¶
NewTSOffset creates a new TSOffset from milliseconds.
func (TSOffset) Elapsed ¶
Elapsed calculates the elapsed time given now and the echoed back timestamp.
func (TSOffset) TSVal ¶
func (offset TSOffset) TSVal(now tcpip.MonotonicTime) uint32
TSVal applies the offset to now and returns the timestamp in milliseconds.
Source Files ¶
tcp.go
- Version
- v0.0.0-20250606233247-e3c4c4cad86f (latest)
- Published
- Jun 6, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 13 hours ago –
Tools for package owners.