Documentation ¶
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 WithTCPCongestionControl(cc string) Option
- func WithTCPDelay(v bool) Option
- func WithTCPModerateReceiveBuffer(v bool) Option
- func WithTCPReceiveBufferSize(size int) Option
- func WithTCPReceiveBufferSizeRange(a, b, c int) Option
- func WithTCPRecovery(v tcpip.TCPRecovery) Option
- func WithTCPSACKEnabled(v bool) Option
- func WithTCPSendBufferSize(size int) Option
- func WithTCPSendBufferSizeRange(a, b, c int) Option
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 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 WithTCPReceiveBufferSize ¶
WithTCPReceiveBufferSize sets the default receive buffer size for TCP.
func WithTCPReceiveBufferSizeRange ¶
WithTCPReceiveBufferSizeRange sets the receive buffer size range for TCP.
func WithTCPRecovery ¶
func WithTCPRecovery(v tcpip.TCPRecovery) Option
WithTCPRecovery sets the recovery option for TCP.
func WithTCPSACKEnabled ¶
WithTCPSACKEnabled sets the SACK option for TCP.
func WithTCPSendBufferSize ¶
WithTCPSendBufferSize sets default the send buffer size for TCP.
func WithTCPSendBufferSizeRange ¶
WithTCPSendBufferSizeRange sets the send buffer size range for TCP.