Files
tsnet-proxy/vendor/github.com/tailscale/wireguard-go/device/queueconstants_default.go
T
2026-10-22 12:27:19 +01:00

20 lines
585 B
Go

//go:build !android && !ios && !windows
/* SPDX-License-Identifier: MIT
*
* Copyright (C) 2017-2023 WireGuard LLC. All Rights Reserved.
*/
package device
import "github.com/tailscale/wireguard-go/conn"
const (
DefaultQueueStagedSize = conn.IdealBatchSize
DefaultQueueOutboundSize = 1024
DefaultQueueInboundSize = 1024
DefaultQueueHandshakeSize = 1024
MaxSegmentSize = (1 << 16) - 1 // largest possible UDP datagram
DefaultPreallocatedBuffersPerPool = 0 // Disable and allow for infinite memory growth
)