Documentation ¶
Overview ¶
Package tcp contains internal type definitions that are not expected to be used by anyone else outside pkg/tcpip.
Index ¶
- type TSOffset
- func (offset TSOffset) Elapsed(now tcpip.MonotonicTime, tsEcr uint32) time.Duration
- func (offset *TSOffset) StateFields() []string
- func (offset *TSOffset) StateLoad(stateSourceObject state.Source)
- func (offset *TSOffset) StateSave(stateSinkObject state.Sink)
- func (offset *TSOffset) StateTypeName() string
- func (offset TSOffset) TSVal(now tcpip.MonotonicTime) uint32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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) StateFields ¶
func (*TSOffset) StateTypeName ¶
Click to show internal directories.
Click to hide internal directories.