From 364032fe846128ce241e6fcc406fe583d05a2e9e Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 1 Oct 2018 16:02:55 +0200 Subject: Update gradle and external deps Signed-off-by: Jason A. Donenfeld --- .../src/git.zx2c4.com/wireguard-go/queueconstants.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 app/tools/libwg-go/src/git.zx2c4.com/wireguard-go/queueconstants.go (limited to 'app/tools/libwg-go/src') diff --git a/app/tools/libwg-go/src/git.zx2c4.com/wireguard-go/queueconstants.go b/app/tools/libwg-go/src/git.zx2c4.com/wireguard-go/queueconstants.go new file mode 100644 index 00000000..b31dcfa5 --- /dev/null +++ b/app/tools/libwg-go/src/git.zx2c4.com/wireguard-go/queueconstants.go @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2017-2018 WireGuard LLC. All Rights Reserved. + */ + +package main + +/* Reduce memory consumption for Android */ + +const ( + QueueOutboundSize = 1024 + QueueInboundSize = 1024 + QueueHandshakeSize = 1024 + MaxSegmentSize = 2200 + PreallocatedBuffersPerPool = 4096 +) -- cgit v1.2.3