github.com/tailscale/wireguard-go@v0.0.20201119-0.20210522003738-46b531feb08a/device/queueconstants_ios.go (about) 1 // +build ios 2 3 /* SPDX-License-Identifier: MIT 4 * 5 * Copyright (C) 2017-2021 WireGuard LLC. All Rights Reserved. 6 */ 7 8 package device 9 10 // Fit within memory limits for iOS's Network Extension API, which has stricter requirements. 11 // These are vars instead of consts, because heavier network extensions might want to reduce 12 // them further. 13 var ( 14 QueueStagedSize = 128 15 QueueOutboundSize = 1024 16 QueueInboundSize = 1024 17 QueueHandshakeSize = 1024 18 PreallocatedBuffersPerPool uint32 = 1024 19 ) 20 21 const MaxSegmentSize = 1700