aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-11-07 15:29:46 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-11-10 17:35:00 +0100
commit7c198520a63ad0db2e53f6d8d22b5d3ab5319558 (patch)
treebeab378ab0c530220919d68379c2caed864af709
parentmain: remove WoW64 check (diff)
downloadwireguard-windows-7c198520a63ad0db2e53f6d8d22b5d3ab5319558.tar.xz
wireguard-windows-7c198520a63ad0db2e53f6d8d22b5d3ab5319558.zip
firewall, winipcfg: add arm and arm64 build tags
The structs stay the same size for the respective 32bit and 64bit platforms, so split things into _32 and _64. Signed-off-by: Simon Rozman <simon@rozman.si> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--tunnel/firewall/types_windows_32.go (renamed from tunnel/firewall/types_windows_386.go)2
-rw-r--r--tunnel/firewall/types_windows_64.go (renamed from tunnel/firewall/types_windows_amd64.go)2
-rw-r--r--tunnel/winipcfg/types_32.go (renamed from tunnel/winipcfg/types_386.go)2
-rw-r--r--tunnel/winipcfg/types_64.go (renamed from tunnel/winipcfg/types_amd64.go)2
-rw-r--r--tunnel/winipcfg/types_test_32.go (renamed from tunnel/winipcfg/types_test_386.go)2
-rw-r--r--tunnel/winipcfg/types_test_64.go (renamed from tunnel/winipcfg/types_test_amd64.go)2
6 files changed, 12 insertions, 0 deletions
diff --git a/tunnel/firewall/types_windows_386.go b/tunnel/firewall/types_windows_32.go
index e8e90663..0bb3bb03 100644
--- a/tunnel/firewall/types_windows_386.go
+++ b/tunnel/firewall/types_windows_32.go
@@ -1,3 +1,5 @@
+// +build 386 arm
+
/* SPDX-License-Identifier: MIT
*
* Copyright (C) 2019 WireGuard LLC. All Rights Reserved.
diff --git a/tunnel/firewall/types_windows_amd64.go b/tunnel/firewall/types_windows_64.go
index 13fde97a..8ec8828b 100644
--- a/tunnel/firewall/types_windows_amd64.go
+++ b/tunnel/firewall/types_windows_64.go
@@ -1,3 +1,5 @@
+// +build amd64 arm64
+
/* SPDX-License-Identifier: MIT
*
* Copyright (C) 2019 WireGuard LLC. All Rights Reserved.
diff --git a/tunnel/winipcfg/types_386.go b/tunnel/winipcfg/types_32.go
index 3a4b5733..d5d29da6 100644
--- a/tunnel/winipcfg/types_386.go
+++ b/tunnel/winipcfg/types_32.go
@@ -1,3 +1,5 @@
+// +build 386 arm
+
/* SPDX-License-Identifier: MIT
*
* Copyright (C) 2019 WireGuard LLC. All Rights Reserved.
diff --git a/tunnel/winipcfg/types_amd64.go b/tunnel/winipcfg/types_64.go
index 11242891..64c3014e 100644
--- a/tunnel/winipcfg/types_amd64.go
+++ b/tunnel/winipcfg/types_64.go
@@ -1,3 +1,5 @@
+// +build amd64 arm64
+
/* SPDX-License-Identifier: MIT
*
* Copyright (C) 2019 WireGuard LLC. All Rights Reserved.
diff --git a/tunnel/winipcfg/types_test_386.go b/tunnel/winipcfg/types_test_32.go
index db5f5f86..7d7aef53 100644
--- a/tunnel/winipcfg/types_test_386.go
+++ b/tunnel/winipcfg/types_test_32.go
@@ -1,3 +1,5 @@
+// +build 386 arm
+
/* SPDX-License-Identifier: MIT
*
* Copyright (C) 2019 WireGuard LLC. All Rights Reserved.
diff --git a/tunnel/winipcfg/types_test_amd64.go b/tunnel/winipcfg/types_test_64.go
index acc74118..91f07120 100644
--- a/tunnel/winipcfg/types_test_amd64.go
+++ b/tunnel/winipcfg/types_test_64.go
@@ -1,3 +1,5 @@
+// +build amd64 arm64
+
/* SPDX-License-Identifier: MIT
*
* Copyright (C) 2019 WireGuard LLC. All Rights Reserved.