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

22 lines
560 B
Go

//go:build ios
/* SPDX-License-Identifier: MIT
*
* Copyright (C) 2017-2023 WireGuard LLC. All Rights Reserved.
*/
package device
// Fit within memory limits for iOS's Network Extension API, which has stricter
// requirements. Heavier network extensions can reduce these further using
// [Device.Option]'s.
const (
DefaultQueueStagedSize = 128
DefaultQueueOutboundSize = 1024
DefaultQueueInboundSize = 1024
DefaultQueueHandshakeSize = 1024
DefaultPreallocatedBuffersPerPool = 1024
)
const MaxSegmentSize = 1700