]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
global: apply gofumpt
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 9 Dec 2021 16:55:50 +0000 (17:55 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 9 Dec 2021 22:15:55 +0000 (23:15 +0100)
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
28 files changed:
conn/bind_linux.go
conn/bind_std.go
conn/bind_windows.go
conn/bindtest/bindtest.go
conn/winrio/rio_windows.go
device/allowedips_test.go
device/cookie.go
device/cookie_test.go
device/device_test.go
device/kdf_test.go
device/noise-protocol.go
device/send.go
device/timers.go
device/uapi.go
ipc/namedpipe/file.go
ipc/namedpipe/namedpipe_test.go
ipc/uapi_bsd.go
ipc/uapi_linux.go
ipc/uapi_unix.go
main.go
replay/replay.go
rwcancel/rwcancel_stub.go
tai64n/tai64n.go
tun/netstack/tun.go
tun/tun_darwin.go
tun/tun_linux.go
tun/tun_openbsd.go
tun/tun_windows.go

index da0670ad7702b3f2a1c8542acfb150a2c290c4f6..b3d755cab13496454f84f52ac47bf8899755a6fb 100644 (file)
@@ -66,8 +66,10 @@ type LinuxSocketBind struct {
 func NewLinuxSocketBind() Bind { return &LinuxSocketBind{sock4: -1, sock6: -1} }
 func NewDefaultBind() Bind     { return NewLinuxSocketBind() }
 
-var _ Endpoint = (*LinuxSocketEndpoint)(nil)
-var _ Bind = (*LinuxSocketBind)(nil)
+var (
+       _ Endpoint = (*LinuxSocketEndpoint)(nil)
+       _ Bind     = (*LinuxSocketBind)(nil)
+)
 
 func (*LinuxSocketBind) ParseEndpoint(s string) (Endpoint, error) {
        var end LinuxSocketEndpoint
@@ -171,7 +173,6 @@ func (bind *LinuxSocketBind) SetMark(value uint32) error {
                        unix.SO_MARK,
                        int(value),
                )
-
                if err != nil {
                        return err
                }
@@ -184,7 +185,6 @@ func (bind *LinuxSocketBind) SetMark(value uint32) error {
                        unix.SO_MARK,
                        int(value),
                )
-
                if err != nil {
                        return err
                }
@@ -327,7 +327,6 @@ func zoneToUint32(zone string) (uint32, error) {
 }
 
 func create4(port uint16) (int, uint16, error) {
-
        // create socket
 
        fd, err := unix.Socket(
@@ -335,7 +334,6 @@ func create4(port uint16) (int, uint16, error) {
                unix.SOCK_DGRAM,
                0,
        )
-
        if err != nil {
                return -1, 0, err
        }
@@ -371,7 +369,6 @@ func create4(port uint16) (int, uint16, error) {
 }
 
 func create6(port uint16) (int, uint16, error) {
-
        // create socket
 
        fd, err := unix.Socket(
@@ -379,7 +376,6 @@ func create6(port uint16) (int, uint16, error) {
                unix.SOCK_DGRAM,
                0,
        )
-
        if err != nil {
                return -1, 0, err
        }
@@ -410,7 +406,6 @@ func create6(port uint16) (int, uint16, error) {
                }
 
                return unix.Bind(fd, &addr)
-
        }(); err != nil {
                unix.Close(fd)
                return -1, 0, err
@@ -425,7 +420,6 @@ func create6(port uint16) (int, uint16, error) {
 }
 
 func send4(sock int, end *LinuxSocketEndpoint, buff []byte) error {
-
        // construct message header
 
        cmsg := struct {
@@ -465,7 +459,6 @@ func send4(sock int, end *LinuxSocketEndpoint, buff []byte) error {
 }
 
 func send6(sock int, end *LinuxSocketEndpoint, buff []byte) error {
-
        // construct message header
 
        cmsg := struct {
@@ -509,7 +502,6 @@ func send6(sock int, end *LinuxSocketEndpoint, buff []byte) error {
 }
 
 func receive4(sock int, buff []byte, end *LinuxSocketEndpoint) (int, error) {
-
        // construct message header
 
        var cmsg struct {
@@ -518,7 +510,6 @@ func receive4(sock int, buff []byte, end *LinuxSocketEndpoint) (int, error) {
        }
 
        size, _, _, newDst, err := unix.Recvmsg(sock, buff, (*[unsafe.Sizeof(cmsg)]byte)(unsafe.Pointer(&cmsg))[:], 0)
-
        if err != nil {
                return 0, err
        }
@@ -541,7 +532,6 @@ func receive4(sock int, buff []byte, end *LinuxSocketEndpoint) (int, error) {
 }
 
 func receive6(sock int, buff []byte, end *LinuxSocketEndpoint) (int, error) {
-
        // construct message header
 
        var cmsg struct {
@@ -550,7 +540,6 @@ func receive6(sock int, buff []byte, end *LinuxSocketEndpoint) (int, error) {
        }
 
        size, _, _, newDst, err := unix.Recvmsg(sock, buff, (*[unsafe.Sizeof(cmsg)]byte)(unsafe.Pointer(&cmsg))[:], 0)
-
        if err != nil {
                return 0, err
        }
index a3cbb158447119939c7fe1cbc244bc659e3de5a7..de03b10656a442342754fc1c2e0f4852cbe700a4 100644 (file)
@@ -30,8 +30,10 @@ func NewStdNetBind() Bind { return &StdNetBind{} }
 
 type StdNetEndpoint net.UDPAddr
 
-var _ Bind = (*StdNetBind)(nil)
-var _ Endpoint = (*StdNetEndpoint)(nil)
+var (
+       _ Bind     = (*StdNetBind)(nil)
+       _ Endpoint = (*StdNetEndpoint)(nil)
+)
 
 func (*StdNetBind) ParseEndpoint(s string) (Endpoint, error) {
        e, err := netip.ParseAddrPort(s)
index 26a3af85120842c9cff607345f48b334d0860427..476e2771e5abce2a266cf65cc1f7cb8c5734d432 100644 (file)
@@ -91,8 +91,10 @@ type WinRingEndpoint struct {
        data   [30]byte
 }
 
-var _ Bind = (*WinRingBind)(nil)
-var _ Endpoint = (*WinRingEndpoint)(nil)
+var (
+       _ Bind     = (*WinRingBind)(nil)
+       _ Endpoint = (*WinRingEndpoint)(nil)
+)
 
 func (*WinRingBind) ParseEndpoint(s string) (Endpoint, error) {
        host, port, err := net.SplitHostPort(s)
@@ -382,7 +384,6 @@ retry:
                count = winrio.DequeueCompletion(bind.rx.cq, results[:])
                if count == 0 {
                        return 0, nil, io.ErrNoProgress
-
                }
        }
        bind.rx.Return(1)
@@ -533,6 +534,7 @@ func (bind *StdNetBind) BindSocketToInterface6(interfaceIndex uint32, blackhole
        bind.blackhole6 = blackhole
        return nil
 }
+
 func (bind *WinRingBind) BindSocketToInterface4(interfaceIndex uint32, blackhole bool) error {
        bind.mu.RLock()
        defer bind.mu.RUnlock()
index 6a4589613f8f50fa34f748ed67b74bf6922c19aa..6fc19727a57b7f570387d807454dfaafed037d4a 100644 (file)
@@ -25,8 +25,10 @@ type ChannelBind struct {
 
 type ChannelEndpoint uint16
 
-var _ conn.Bind = (*ChannelBind)(nil)
-var _ conn.Endpoint = (*ChannelEndpoint)(nil)
+var (
+       _ conn.Bind     = (*ChannelBind)(nil)
+       _ conn.Endpoint = (*ChannelEndpoint)(nil)
+)
 
 func NewChannelBinds() [2]conn.Bind {
        arx4 := make(chan []byte, 8192)
index 0a07c6507558c9613fbec609b68829f926c62f3a..0911998d5eff19e8bfe76b4b7552493f91bca6e8 100644 (file)
@@ -84,8 +84,10 @@ type iocpNotificationCompletion struct {
        overlapped     *windows.Overlapped
 }
 
-var initialized sync.Once
-var available bool
+var (
+       initialized sync.Once
+       available   bool
+)
 
 func Initialize() bool {
        initialized.Do(func() {
@@ -108,7 +110,7 @@ func Initialize() bool {
                        return
                }
                defer windows.CloseHandle(socket)
-               var WSAID_MULTIPLE_RIO = &windows.GUID{0x8509e081, 0x96dd, 0x4005, [8]byte{0xb1, 0x65, 0x9e, 0x2e, 0xe8, 0xc7, 0x9e, 0x3f}}
+               WSAID_MULTIPLE_RIO := &windows.GUID{0x8509e081, 0x96dd, 0x4005, [8]byte{0xb1, 0x65, 0x9e, 0x2e, 0xe8, 0xc7, 0x9e, 0x3f}}
                const SIO_GET_MULTIPLE_EXTENSION_FUNCTION_POINTER = 0xc8000024
                ob := uint32(0)
                err = windows.WSAIoctl(socket, SIO_GET_MULTIPLE_EXTENSION_FUNCTION_POINTER,
index a27499782a0012abd9c49a5fba03aa6eab5be964..68f382b14c2242e1c5f5863cf5676ecf6ffe4f8f 100644 (file)
@@ -20,7 +20,6 @@ type testPairCommonBits struct {
 }
 
 func TestCommonBits(t *testing.T) {
-
        tests := []testPairCommonBits{
                {s1: []byte{1, 4, 53, 128}, s2: []byte{0, 0, 0, 0}, match: 7},
                {s1: []byte{0, 4, 53, 128}, s2: []byte{0, 0, 0, 0}, match: 13},
@@ -41,7 +40,7 @@ func TestCommonBits(t *testing.T) {
        }
 }
 
-func benchmarkTrie(peerNumber int, addressNumber int, addressLength int, b *testing.B) {
+func benchmarkTrie(peerNumber, addressNumber, addressLength int, b *testing.B) {
        var trie *trieEntry
        var peers []*Peer
        root := parentIndirection{&trie, 2}
index b02b7699160e254deef55fc8b5d6d8a7c7b34af7..840f7096461cfb287bc357f37e17cde96febfb68 100644 (file)
@@ -83,7 +83,7 @@ func (st *CookieChecker) CheckMAC1(msg []byte) bool {
        return hmac.Equal(mac1[:], msg[smac1:smac2])
 }
 
-func (st *CookieChecker) CheckMAC2(msg []byte, src []byte) bool {
+func (st *CookieChecker) CheckMAC2(msg, src []byte) bool {
        st.RLock()
        defer st.RUnlock()
 
@@ -119,7 +119,6 @@ func (st *CookieChecker) CreateReply(
        recv uint32,
        src []byte,
 ) (*MessageCookieReply, error) {
-
        st.RLock()
 
        // refresh cookie secret
@@ -204,7 +203,6 @@ func (st *CookieGenerator) ConsumeReply(msg *MessageCookieReply) bool {
 
        xchapoly, _ := chacha20poly1305.NewX(st.mac2.encryptionKey[:])
        _, err := xchapoly.Open(cookie[:0], msg.Nonce[:], msg.Cookie[:], st.mac2.lastMAC1[:])
-
        if err != nil {
                return false
        }
@@ -215,7 +213,6 @@ func (st *CookieGenerator) ConsumeReply(msg *MessageCookieReply) bool {
 }
 
 func (st *CookieGenerator) AddMacs(msg []byte) {
-
        size := len(msg)
 
        smac2 := size - blake2s.Size128
index 02e01d1c5d89a470f9e2d983cbfd569732160ff6..06f306f82897512fdf0ef348c862f65e9b102443 100644 (file)
@@ -10,7 +10,6 @@ import (
 )
 
 func TestCookieMAC1(t *testing.T) {
-
        // setup generator / checker
 
        var (
@@ -132,12 +131,12 @@ func TestCookieMAC1(t *testing.T) {
 
                msg[5] ^= 0x20
 
-               srcBad1 := []byte{192, 168, 13, 37, 40, 01}
+               srcBad1 := []byte{192, 168, 13, 37, 40, 1}
                if checker.CheckMAC2(msg, srcBad1) {
                        t.Fatal("MAC2 generation/verification failed")
                }
 
-               srcBad2 := []byte{192, 168, 13, 38, 40, 01}
+               srcBad2 := []byte{192, 168, 13, 38, 40, 1}
                if checker.CheckMAC2(msg, srcBad2) {
                        t.Fatal("MAC2 generation/verification failed")
                }
index 84221bed15e298dc14f4d2a670d9f423dbee949a..b484ca2ebc1c49542e8ba72f2d4aad57ad4dbd05 100644 (file)
@@ -48,7 +48,7 @@ func uapiCfg(cfg ...string) string {
 
 // genConfigs generates a pair of configs that connect to each other.
 // The configs use distinct, probably-usable ports.
-func genConfigs(tb testing.TB) (cfgs [2]string, endpointCfgs [2]string) {
+func genConfigs(tb testing.TB) (cfgs, endpointCfgs [2]string) {
        var key1, key2 NoisePrivateKey
        _, err := rand.Read(key1[:])
        if err != nil {
index b14aa6de7157b0182c34527e5f02a9bf4fbdfe54..872195cdc78161b14cea3fd8f8330300d3f06376 100644 (file)
@@ -20,7 +20,7 @@ type KDFTest struct {
        t2    string
 }
 
-func assertEquals(t *testing.T, a string, b string) {
+func assertEquals(t *testing.T, a, b string) {
        if a != b {
                t.Fatal("expected", a, "=", b)
        }
index e31ceda3f3080a4be020b68a62a59a8e07043180..ffa04528b3aaeeab195874eb55adeb5639adc6fa 100644 (file)
@@ -138,11 +138,11 @@ var (
        ZeroNonce       [chacha20poly1305.NonceSize]byte
 )
 
-func mixKey(dst *[blake2s.Size]byte, c *[blake2s.Size]byte, data []byte) {
+func mixKey(dst, c *[blake2s.Size]byte, data []byte) {
        KDF1(dst, c[:], data)
 }
 
-func mixHash(dst *[blake2s.Size]byte, h *[blake2s.Size]byte, data []byte) {
+func mixHash(dst, h *[blake2s.Size]byte, data []byte) {
        hash, _ := blake2s.New256(nil)
        hash.Write(h[:])
        hash.Write(data)
@@ -175,7 +175,7 @@ func init() {
 }
 
 func (device *Device) CreateMessageInitiation(peer *Peer) (*MessageInitiation, error) {
-       var errZeroECDHResult = errors.New("ECDH returned all zeros")
+       errZeroECDHResult := errors.New("ECDH returned all zeros")
 
        device.staticIdentity.RLock()
        defer device.staticIdentity.RUnlock()
@@ -436,7 +436,6 @@ func (device *Device) ConsumeMessageResponse(msg *MessageResponse) *Peer {
        )
 
        ok := func() bool {
-
                // lock handshake state
 
                handshake.mutex.RLock()
index b05c69e94cc6a8d8dbe68b9f3a239b7d05178d89..0a7135f903c041428c5bb90f158e8c042c2d7ebd 100644 (file)
@@ -226,7 +226,6 @@ func (device *Device) RoutineReadFromTUN() {
 
                offset := MessageTransportHeaderSize
                size, err := device.tun.device.Read(elem.buffer[:], offset)
-
                if err != nil {
                        if !device.isClosed() {
                                if !errors.Is(err, os.ErrClosed) {
index 176976d595241c5aca24a16d0010e51d8fc94d0c..4d2d0f88a921da8a9512147f440f9c765c6c8339 100644 (file)
@@ -130,7 +130,6 @@ func expiredNewHandshake(peer *Peer) {
        }
        peer.Unlock()
        peer.SendHandshakeInitiation(false)
-
 }
 
 func expiredZeroKeyMaterial(peer *Peer) {
index 0f98c68c486aba66e133f6fe8976e5d508da3971..1994d46da04cd2590026e8703d2de74596a6f892 100644 (file)
@@ -73,7 +73,6 @@ func (device *Device) IpcGetOperation(w io.Writer) error {
        }
 
        func() {
-
                // lock required resources
 
                device.net.RLock()
index 9c2481d96864192a5d54a7c6d3f3a10f5c45d587..c5dd48a188265097a62fd270bbeaad9f7641944f 100644 (file)
@@ -22,8 +22,10 @@ import (
 
 type timeoutChan chan struct{}
 
-var ioInitOnce sync.Once
-var ioCompletionPort windows.Handle
+var (
+       ioInitOnce       sync.Once
+       ioCompletionPort windows.Handle
+)
 
 // ioResult contains the result of an asynchronous IO operation
 type ioResult struct {
index 0573d0fbb1c2a492a8dd364fd0f2f014ed045422..84d2987c7b858d39eef241a2b4c0c468a9d78fe2 100644 (file)
@@ -169,7 +169,7 @@ func TestDialAccessDeniedWithRestrictedSD(t *testing.T) {
        }
 }
 
-func getConnection(cfg *namedpipe.ListenConfig) (client net.Conn, server net.Conn, err error) {
+func getConnection(cfg *namedpipe.ListenConfig) (client, server net.Conn, err error) {
        pipePath := randomPipePath()
        if cfg == nil {
                cfg = &namedpipe.ListenConfig{}
index 6deaa87bbb670219875ace6b068c7467202ccc38..6c85b402e0bed817bb1313442c503ef34c24c147 100644 (file)
@@ -54,7 +54,6 @@ func (l *UAPIListener) Addr() net.Addr {
 }
 
 func UAPIListen(name string, file *os.File) (net.Listener, error) {
-
        // wrap file in listener
 
        listener, err := net.FileListener(file)
index e03a00b34b530a2a246f0fbe8d8983c8028fa1e2..30a8eb49506d84612d7096aae89988f6bb8bfa28 100644 (file)
@@ -51,7 +51,6 @@ func (l *UAPIListener) Addr() net.Addr {
 }
 
 func UAPIListen(name string, file *os.File) (net.Listener, error) {
-
        // wrap file in listener
 
        listener, err := net.FileListener(file)
index 57caf2160d029e2a6abbdfcb4a77894260f2fc84..6f1ee4782b6ea8ac9983771369042fc1a48431cc 100644 (file)
@@ -33,7 +33,7 @@ func sockPath(iface string) string {
 }
 
 func UAPIOpen(name string) (*os.File, error) {
-       if err := os.MkdirAll(socketDirectory, 0755); err != nil {
+       if err := os.MkdirAll(socketDirectory, 0o755); err != nil {
                return nil, err
        }
 
@@ -43,7 +43,7 @@ func UAPIOpen(name string) (*os.File, error) {
                return nil, err
        }
 
-       oldUmask := unix.Umask(0077)
+       oldUmask := unix.Umask(0o077)
        defer unix.Umask(oldUmask)
 
        listener, err := net.ListenUnix("unix", addr)
diff --git a/main.go b/main.go
index d455983723097808e73a70bff266bd03ff85ccd0..b35ac291f7eede2abb5b6e50a615026e8998e91c 100644 (file)
--- a/main.go
+++ b/main.go
@@ -169,7 +169,6 @@ func main() {
 
                return os.NewFile(uintptr(fd), ""), nil
        }()
-
        if err != nil {
                logger.Errorf("UAPI listen error: %v", err)
                os.Exit(ExitSetupFailed)
index fac7ab2bd45ef756108c73bac5654cf90c99d054..f140272504f9739c012a1e11a7032bc194b9426f 100644 (file)
@@ -34,7 +34,7 @@ func (f *Filter) Reset() {
 
 // ValidateCounter checks if the counter should be accepted.
 // Overlimit counters (>= limit) are always rejected.
-func (f *Filter) ValidateCounter(counter uint64, limit uint64) bool {
+func (f *Filter) ValidateCounter(counter, limit uint64) bool {
        if counter >= limit {
                return false
        }
index fae47b4e4ad5511f37b49e56513e6ef8ac8d1cbe..182940b32eb3731210dad6431404c3e9e57f2057 100644 (file)
@@ -4,7 +4,6 @@
 
 package rwcancel
 
-type RWCancel struct {
-}
+type RWCancel struct{}
 
 func (*RWCancel) Cancel() {}
index e1fa26aa3d4628f204dd24d8675d070c3c0220a6..de0f5bf4b3be93da7db285c8d6817dd93a4e9518 100644 (file)
@@ -11,9 +11,11 @@ import (
        "time"
 )
 
-const TimestampSize = 12
-const base = uint64(0x400000000000000a)
-const whitenerMask = uint32(0x1000000 - 1)
+const (
+       TimestampSize = 12
+       base          = uint64(0x400000000000000a)
+       whitenerMask  = uint32(0x1000000 - 1)
+)
 
 type Timestamp [TimestampSize]byte
 
index f1c03f48cceeebb1382ea7a7de93ecff36dafa5a..fb7f07d5484195f8af5abd4da81be216b8925e55 100644 (file)
@@ -42,8 +42,11 @@ type netTun struct {
        dnsServers     []netip.Addr
        hasV4, hasV6   bool
 }
-type endpoint netTun
-type Net netTun
+
+type (
+       endpoint netTun
+       Net      netTun
+)
 
 func (e *endpoint) Attach(dispatcher stack.NetworkDispatcher) {
        e.dispatcher = dispatcher
index 35d3085747ccd57959bc5a76d3255cf4bcc80d86..94bbfa69e705fe9f07f82d48ade93ac15321e9fc 100644 (file)
@@ -141,7 +141,7 @@ func CreateTUN(name string, mtu int) (Device, error) {
        if err == nil && name == "utun" {
                fname := os.Getenv("WG_TUN_NAME_FILE")
                if fname != "" {
-                       os.WriteFile(fname, []byte(tun.(*NativeTun).name+"\n"), 0400)
+                       os.WriteFile(fname, []byte(tun.(*NativeTun).name+"\n"), 0o400)
                }
        }
 
@@ -232,7 +232,6 @@ func (tun *NativeTun) Read(buff []byte, offset int) (int, error) {
 }
 
 func (tun *NativeTun) Write(buff []byte, offset int) (int, error) {
-
        // reserve space for header
 
        buff = buff[offset-4:]
@@ -282,7 +281,6 @@ func (tun *NativeTun) setMTU(n int) error {
                unix.SOCK_DGRAM,
                0,
        )
-
        if err != nil {
                return err
        }
@@ -306,7 +304,6 @@ func (tun *NativeTun) MTU() (int, error) {
                unix.SOCK_DGRAM,
                0,
        )
-
        if err != nil {
                return 0, err
        }
index 1cc84cba0ee5d2a37c2aa583057ceacd63794dfe..89b716d9c70b04ac47b9b54dac9b63679e067dc0 100644 (file)
@@ -232,7 +232,6 @@ func (tun *NativeTun) setMTU(n int) error {
                unix.SOCK_DGRAM,
                0,
        )
-
        if err != nil {
                return err
        }
@@ -269,7 +268,6 @@ func (tun *NativeTun) MTU() (int, error) {
                unix.SOCK_DGRAM,
                0,
        )
-
        if err != nil {
                return 0, err
        }
index 7ef62f4305a7ec76211a849acbb60d580237932f..ff845bca92cec4745b57f37c198f8877ad87db05 100644 (file)
@@ -133,7 +133,7 @@ func CreateTUN(name string, mtu int) (Device, error) {
        if err == nil && name == "tun" {
                fname := os.Getenv("WG_TUN_NAME_FILE")
                if fname != "" {
-                       os.WriteFile(fname, []byte(tun.(*NativeTun).name+"\n"), 0400)
+                       os.WriteFile(fname, []byte(tun.(*NativeTun).name+"\n"), 0o400)
                }
        }
 
@@ -219,7 +219,6 @@ func (tun *NativeTun) Read(buff []byte, offset int) (int, error) {
 }
 
 func (tun *NativeTun) Write(buff []byte, offset int) (int, error) {
-
        // reserve space for header
 
        buff = buff[offset-4:]
@@ -274,7 +273,6 @@ func (tun *NativeTun) setMTU(n int) error {
                unix.SOCK_DGRAM,
                0,
        )
-
        if err != nil {
                return err
        }
@@ -309,7 +307,6 @@ func (tun *NativeTun) MTU() (int, error) {
                unix.SOCK_DGRAM,
                0,
        )
-
        if err != nil {
                return 0, err
        }
index 3101ed9f76235dcebef20b5e927e21d61c350c77..d0571508a261dd72e4a6d3522896ddeb33ab1127 100644 (file)
@@ -46,8 +46,10 @@ type NativeTun struct {
        forcedMTU int
 }
 
-var WintunTunnelType = "WireGuard"
-var WintunStaticRequestedGUID *windows.GUID
+var (
+       WintunTunnelType          = "WireGuard"
+       WintunStaticRequestedGUID *windows.GUID
+)
 
 //go:linkname procyield runtime.procyield
 func procyield(cycles uint32)