/*
GoVPN -- simple secure free software virtual private network daemon
-Copyright (C) 2014-2015 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2014-2016 Sergey Matveev <stargrave@stargrave.org>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
const (
TimeoutDefault = 60
+ MTUMax = 9000
+ MTUDefault = 1500 + 14
)
var (
- MTU int
Version string
)
return out, err
}
-// Zero each byte
-func sliceZero(data []byte) {
+// Zero each byte.
+func SliceZero(data []byte) {
for i := 0; i < len(data); i++ {
- data[i] = '\x00'
+ data[i] = 0
}
}