summaryrefslogtreecommitdiff
path: root/tun
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-03-03 04:04:41 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-03 05:00:40 +0100
commit69f0fe67b63d90e523a5a1241fb1b46c2e8dbe03 (patch)
tree1ef86da3242afde462dcadb7241bb09f499d5bd7 /tun
parentd435be35cac49af9367b2005d831d55e570c4b1b (diff)
downloadwireguard-go-69f0fe67b63d90e523a5a1241fb1b46c2e8dbe03.tar.gz
wireguard-go-69f0fe67b63d90e523a5a1241fb1b46c2e8dbe03.zip
global: begin modularization
Diffstat (limited to '')
-rw-r--r--device/tun.go (renamed from tun.go)2
-rw-r--r--tun/helper_test.go (renamed from helper_test.go)2
-rw-r--r--tun/tun_windows.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/tun.go b/device/tun.go
index 52bfb68..bc5f1f1 100644
--- a/tun.go
+++ b/device/tun.go
@@ -3,7 +3,7 @@
* Copyright (C) 2017-2019 WireGuard LLC. All Rights Reserved.
*/
-package main
+package device
import (
"golang.zx2c4.com/wireguard/tun"
diff --git a/helper_test.go b/tun/helper_test.go
index 3705c97..3e86fc8 100644
--- a/helper_test.go
+++ b/tun/helper_test.go
@@ -3,7 +3,7 @@
* Copyright (C) 2017-2019 WireGuard LLC. All Rights Reserved.
*/
-package main
+package tun
import (
"bytes"
diff --git a/tun/tun_windows.go b/tun/tun_windows.go
index 94efe48..d767d79 100644
--- a/tun/tun_windows.go
+++ b/tun/tun_windows.go
@@ -353,4 +353,4 @@ func (tun *NativeTun) Write(buff []byte, offset int) (int, error) {
func (tun *NativeTun) GUID() windows.GUID {
return *(*windows.GUID)(tun.wt)
-} \ No newline at end of file
+}