aboutsummaryrefslogtreecommitdiffstats
path: root/tun_linux.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-21 17:27:18 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-21 18:48:48 +0200
commitff3f2455e5cd74bd45c2f124a1d275462e33a4a0 (patch)
treec201e712664d808f8b166f9ac74f78dbfbcbb76a /tun_linux.go
parentAdd FreeBSD support (diff)
downloadwireguard-go-ff3f2455e5cd74bd45c2f124a1d275462e33a4a0.tar.xz
wireguard-go-ff3f2455e5cd74bd45c2f124a1d275462e33a4a0.zip
Rework freebsd support
Diffstat (limited to 'tun_linux.go')
-rw-r--r--tun_linux.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tun_linux.go b/tun_linux.go
index 629a5ec..b43ded8 100644
--- a/tun_linux.go
+++ b/tun_linux.go
@@ -227,7 +227,7 @@ func (tun *NativeTun) setMTU(n int) error {
)
if errno != 0 {
- return errors.New("Failed to set MTU of TUN device")
+ return errors.New("failed to set MTU of TUN device")
}
return nil
@@ -260,7 +260,7 @@ func (tun *NativeTun) MTU() (int, error) {
uintptr(unsafe.Pointer(&ifr[0])),
)
if errno != 0 {
- return 0, errors.New("Failed to get MTU of TUN device: " + strconv.FormatInt(int64(errno), 10))
+ return 0, errors.New("failed to get MTU of TUN device: " + strconv.FormatInt(int64(errno), 10))
}
// convert result to signed 32-bit int
@@ -282,7 +282,7 @@ func (tun *NativeTun) Name() (string, error) {
uintptr(unsafe.Pointer(&ifr[0])),
)
if errno != 0 {
- return "", errors.New("Failed to get name of TUN device: " + strconv.FormatInt(int64(errno), 10))
+ return "", errors.New("failed to get name of TUN device: " + strconv.FormatInt(int64(errno), 10))
}
nullStr := ifr[:]
i := bytes.IndexByte(nullStr, 0)