From: Jason A. Donenfeld Date: Fri, 7 May 2021 07:17:35 +0000 (+0200) Subject: tun: windows: rearrange struct to avoid alignment trap on 32bit X-Git-Tag: 0.0.20211016~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db733ccd6531a2976008b87b3af35bece9ace2a9;p=thirdparty%2Fwireguard-go.git tun: windows: rearrange struct to avoid alignment trap on 32bit Signed-off-by: Jason A. Donenfeld --- 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")