mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-27 03:55:36 +00:00
21 lines
423 B
Go
21 lines
423 B
Go
|
// Copyright (c) Tailscale Inc & AUTHORS
|
||
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
|
||
|
//go:build !ios
|
||
|
|
||
|
package netstack
|
||
|
|
||
|
import (
|
||
|
"gvisor.dev/gvisor/pkg/tcpip/transport/tcp"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
tcpRXBufMinSize = tcp.MinBufferSize
|
||
|
tcpRXBufDefSize = tcp.DefaultSendBufferSize
|
||
|
tcpRXBufMaxSize = 8 << 20 // 8MiB
|
||
|
|
||
|
tcpTXBufMinSize = tcp.MinBufferSize
|
||
|
tcpTXBufDefSize = tcp.DefaultReceiveBufferSize
|
||
|
tcpTXBufMaxSize = 6 << 20 // 6MiB
|
||
|
)
|