summaryrefslogtreecommitdiffhomepage
path: root/tun
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-14 09:09:52 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-14 09:09:52 +0200
commit3bf41b06ae6ec9a558d3b1f1f315509ccef97010 (patch)
tree2d0d03da4e9d344c5de5dc01f11b5900025dff35 /tun
parent3147f000897be94066069c1a703272b7e282a015 (diff)
global: regroup all imports
Diffstat (limited to 'tun')
-rw-r--r--tun/helper_test.go3
-rw-r--r--tun/tun_darwin.go5
-rw-r--r--tun/tun_freebsd.go5
-rw-r--r--tun/tun_linux.go7
-rw-r--r--tun/tun_openbsd.go5
-rw-r--r--tun/wintun/netshell/netshell_windows.go2
6 files changed, 16 insertions, 11 deletions
diff --git a/tun/helper_test.go b/tun/helper_test.go
index 3e86fc8..4fa0357 100644
--- a/tun/helper_test.go
+++ b/tun/helper_test.go
@@ -8,9 +8,10 @@ package tun
import (
"bytes"
"errors"
- "golang.zx2c4.com/wireguard/tun"
"os"
"testing"
+
+ "golang.zx2c4.com/wireguard/tun"
)
/* Helpers for writing unit tests
diff --git a/tun/tun_darwin.go b/tun/tun_darwin.go
index 2afe9de..f7cf8e8 100644
--- a/tun/tun_darwin.go
+++ b/tun/tun_darwin.go
@@ -7,13 +7,14 @@ package tun
import (
"fmt"
- "golang.org/x/net/ipv6"
- "golang.org/x/sys/unix"
"io/ioutil"
"net"
"os"
"syscall"
"unsafe"
+
+ "golang.org/x/net/ipv6"
+ "golang.org/x/sys/unix"
)
const utunControlName = "com.apple.net.utun_control"
diff --git a/tun/tun_freebsd.go b/tun/tun_freebsd.go
index c9c89ef..b7c82cf 100644
--- a/tun/tun_freebsd.go
+++ b/tun/tun_freebsd.go
@@ -9,12 +9,13 @@ import (
"bytes"
"errors"
"fmt"
- "golang.org/x/net/ipv6"
- "golang.org/x/sys/unix"
"net"
"os"
"syscall"
"unsafe"
+
+ "golang.org/x/net/ipv6"
+ "golang.org/x/sys/unix"
)
// _TUNSIFHEAD, value derived from sys/net/{if_tun,ioccom}.h
diff --git a/tun/tun_linux.go b/tun/tun_linux.go
index 784cb9f..f5f7ec7 100644
--- a/tun/tun_linux.go
+++ b/tun/tun_linux.go
@@ -12,15 +12,16 @@ import (
"bytes"
"errors"
"fmt"
- "golang.org/x/net/ipv6"
- "golang.org/x/sys/unix"
- "golang.zx2c4.com/wireguard/rwcancel"
"net"
"os"
"sync"
"syscall"
"time"
"unsafe"
+
+ "golang.org/x/net/ipv6"
+ "golang.org/x/sys/unix"
+ "golang.zx2c4.com/wireguard/rwcancel"
)
const (
diff --git a/tun/tun_openbsd.go b/tun/tun_openbsd.go
index 645bcca..a3db83b 100644
--- a/tun/tun_openbsd.go
+++ b/tun/tun_openbsd.go
@@ -7,13 +7,14 @@ package tun
import (
"fmt"
- "golang.org/x/net/ipv6"
- "golang.org/x/sys/unix"
"io/ioutil"
"net"
"os"
"syscall"
"unsafe"
+
+ "golang.org/x/net/ipv6"
+ "golang.org/x/sys/unix"
)
// Structure for iface mtu get/set ioctls
diff --git a/tun/wintun/netshell/netshell_windows.go b/tun/wintun/netshell/netshell_windows.go
index cb03252..3122d87 100644
--- a/tun/wintun/netshell/netshell_windows.go
+++ b/tun/wintun/netshell/netshell_windows.go
@@ -13,7 +13,7 @@ import (
)
var (
- modnetshell = windows.NewLazySystemDLL("netshell.dll")
+ modnetshell = windows.NewLazySystemDLL("netshell.dll")
procHrRenameConnection = modnetshell.NewProc("HrRenameConnection")
)