gitee.com/aurawing/surguard-go@v0.3.1-0.20240409071558-96509a61ecf3/device/queueconstants_ios.go (about)

     1  //go:build ios
     2  
     3  /* SPDX-License-Identifier: MIT
     4   *
     5   * Copyright (C) 2017-2023 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