github.com/liloew/wireguard-go@v0.0.0-20220224014633-9cd745e6f114/device/queueconstants_android.go (about)

     1  /* SPDX-License-Identifier: MIT
     2   *
     3   * Copyright (C) 2017-2021 WireGuard LLC. All Rights Reserved.
     4   */
     5  
     6  package device
     7  
     8  /* Reduce memory consumption for Android */
     9  
    10  const (
    11  	QueueStagedSize            = 128
    12  	QueueOutboundSize          = 1024
    13  	QueueInboundSize           = 1024
    14  	QueueHandshakeSize         = 1024
    15  	MaxSegmentSize             = 2200
    16  	PreallocatedBuffersPerPool = 4096
    17  )