From 95c70b803278a1725416498d58e04e0a93813a71 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 17 May 2019 14:26:46 +0200 Subject: wintun: make certain methods private --- tun/tun_windows.go | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'tun/tun_windows.go') 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() } -- cgit v1.2.3-59-g8ed1b