summaryrefslogtreecommitdiffhomepage
path: root/tun/tun_windows.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-05-07 09:17:35 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-05-07 09:19:00 +0200
commitdb733ccd6531a2976008b87b3af35bece9ace2a9 (patch)
tree8243e9e5627f0270095379c5385e71a5adcf4f17 /tun/tun_windows.go
parenta7aec4449f0e4b31f33a118a16223876b8533322 (diff)
tun: windows: rearrange struct to avoid alignment trap on 32bit
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tun/tun_windows.go')
-rw-r--r--tun/tun_windows.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/tun/tun_windows.go b/tun/tun_windows.go
index 70f0aa3..2305b72 100644
--- a/tun/tun_windows.go
+++ b/tun/tun_windows.go
@@ -36,14 +36,14 @@ type rateJuggler struct {
type NativeTun struct {
wt *wintun.Adapter
handle windows.Handle
- close bool
- closing sync.RWMutex
- events chan Event
- forcedMTU int
rate rateJuggler
session wintun.Session
readWait windows.Handle
+ events chan Event
+ closing sync.RWMutex
closeOnce sync.Once
+ forcedMTU int
+ close bool
}
var WintunPool, _ = wintun.MakePool("WireGuard")