aboutsummaryrefslogtreecommitdiff
path: root/src/constants.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-07-13 14:32:40 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-07-13 14:32:40 +0200
commit93e3848ea76e755477bec8d9540a3c4c31ea7320 (patch)
tree31c27266ebf12fa9cef06ab531ee4b9fa7b69c56 /src/constants.go
parent8393cbff521560caef5b1b468cbb2ad030e8eda4 (diff)
downloadwireguard-go-93e3848ea76e755477bec8d9540a3c4c31ea7320.tar.gz
wireguard-go-93e3848ea76e755477bec8d9540a3c4c31ea7320.zip
Terminate on interface deletion
Program now terminates when the interface is removed Increases the number of os threads (relevant for Go <1.5, not tested) More consistent commenting Improved logging (additional peer information)
Diffstat (limited to 'src/constants.go')
-rw-r--r--src/constants.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/constants.go b/src/constants.go
index 0384741..6b0d414 100644
--- a/src/constants.go
+++ b/src/constants.go
@@ -29,6 +29,6 @@ const (
QueueInboundSize = 1024
QueueHandshakeSize = 1024
QueueHandshakeBusySize = QueueHandshakeSize / 8
- MinMessageSize = MessageTransportSize // keep-alive
- MaxMessageSize = 4096 // TODO: make depend on the MTU?
+ MinMessageSize = MessageTransportSize // size of keep-alive
+ MaxMessageSize = (1 << 16) - 1
)