aboutsummaryrefslogtreecommitdiffstats
path: root/tun/tun_windows.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-17 14:26:46 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-17 15:01:08 +0200
commit95c70b803278a1725416498d58e04e0a93813a71 (patch)
tree755c4ee95ea00d151c2696c64ad4385faa1c68c7 /tun/tun_windows.go
parentversion: bump snapshot (diff)
downloadwireguard-go-95c70b803278a1725416498d58e04e0a93813a71.tar.xz
wireguard-go-95c70b803278a1725416498d58e04e0a93813a71.zip
wintun: make certain methods private
Diffstat (limited to 'tun/tun_windows.go')
-rw-r--r--tun/tun_windows.go13
1 files changed, 3 insertions, 10 deletions
diff --git a/tun/tun_windows.go b/tun/tun_windows.go
index 485e24e..4ddf5fe 100644
--- a/tun/tun_windows.go
+++ b/tun/tun_windows.go
@@ -367,16 +367,9 @@ func (tun *NativeTun) Write(buff []byte, offset int) (int, error) {
return len(buff) - offset, nil
}
-//
-// GUID returns Windows adapter instance ID.
-//
-func (tun *NativeTun) GUID() windows.GUID {
- return tun.wt.CfgInstanceID
-}
-
-//
-// GUID returns Windows adapter instance ID.
+///
+// LUID returns Windows adapter instance ID.
//
func (tun *NativeTun) LUID() uint64 {
- return ((uint64(tun.wt.LUIDIndex) & ((1 << 24) - 1)) << 24) | ((uint64(tun.wt.IfType) & ((1 << 16) - 1)) << 48)
+ return tun.wt.LUID()
}