Documentation ¶
Overview ¶
Package stack provides a thin wrapper around a gVisor's stack.
Index ¶
- type Option
- func WithDefault() Option
- func WithDefaultTTL(ttl uint8) Option
- func WithForwarding(v bool) Option
- func WithICMPBurst(burst int) Option
- func WithICMPLimit(limit rate.Limit) Option
- func WithTCPBufferSizeRange(a, b, c int) Option
- func WithTCPCongestionControl(cc string) Option
- func WithTCPDelay(v bool) Option
- func WithTCPModerateReceiveBuffer(v bool) Option
- func WithTCPSACKEnabled(v bool) Option
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
func WithDefaultTTL ¶
WithDefaultTTL sets the default TTL used by stack.
func WithForwarding ¶
WithForwarding sets packet forwarding between NICs for IPv4 & IPv6.
func WithICMPBurst ¶
WithICMPBurst sets the number of ICMP messages that can be sent in a single burst.
func WithICMPLimit ¶
WithICMPLimit sets the maximum number of ICMP messages permitted by rate limiter.
func WithTCPBufferSizeRange ¶
WithTCPBufferSizeRange sets the receive and send buffer size range for TCP.
func WithTCPCongestionControl ¶
WithTCPCongestionControl sets the current congestion control algorithm.
func WithTCPDelay ¶
WithTCPDelay enables or disables Nagle's algorithm in TCP.
func WithTCPModerateReceiveBuffer ¶
WithTCPModerateReceiveBuffer sets receive buffer moderation for TCP.
func WithTCPSACKEnabled ¶
WithTCPSACKEnabled sets the SACK option for TCP.