aboutsummaryrefslogtreecommitdiffstats
path: root/src/tun_linux.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-07-01 23:29:22 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-07-01 23:29:22 +0200
commit1e620427bd01b1e897c57752359f7dbb28e34bff (patch)
treef525ee38fec7826b07060271dcc06601f992612d /src/tun_linux.go
parentRemoved exponential backoff (diff)
downloadwireguard-go-1e620427bd01b1e897c57752359f7dbb28e34bff.tar.xz
wireguard-go-1e620427bd01b1e897c57752359f7dbb28e34bff.zip
Handshake negotiation functioning
Diffstat (limited to '')
-rw-r--r--src/tun_linux.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tun_linux.go b/src/tun_linux.go
index db13fb0..a0bff81 100644
--- a/src/tun_linux.go
+++ b/src/tun_linux.go
@@ -24,14 +24,14 @@ const (
type NativeTun struct {
fd *os.File
name string
- mtu uint
+ mtu int
}
func (tun *NativeTun) Name() string {
return tun.name
}
-func (tun *NativeTun) MTU() uint {
+func (tun *NativeTun) MTU() int {
return tun.mtu
}