forked from WireGuard/wireguard-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tunnel: update to go 1.16 and newer api
Signed-off-by: Jason A. Donenfeld <[email protected]>
- Loading branch information
Showing
5 changed files
with
32 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
module golang.zx2c4.com/wireguard/android | ||
|
||
go 1.15 | ||
go 1.16 | ||
|
||
require ( | ||
golang.org/x/net v0.0.0-20210119194325-5f4716e94777 // indirect | ||
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c | ||
golang.zx2c4.com/wireguard v0.0.0-20210212170059-7a0fb5bbb172 | ||
golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83 // indirect | ||
golang.org/x/net v0.0.0-20210220033124-5f55cee0dc0d // indirect | ||
golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43 | ||
golang.zx2c4.com/wireguard v0.0.0-20210222142647-219296a1e787 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= | ||
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad h1:DN0cp81fZ3njFcrLCytUHRSUkqBjfTo4Tx9RJTWs0EY= | ||
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= | ||
golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83 h1:/ZScEX8SfEmUGRHs0gxpqteO5nfNW6axyZbBdw9A12g= | ||
golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= | ||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= | ||
golang.org/x/net v0.0.0-20201224014010-6772e930b67b h1:iFwSg7t5GZmB/Q5TjiEAsdoLDrdJRC1RiF2WhuV29Qw= | ||
golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= | ||
golang.org/x/net v0.0.0-20210119194325-5f4716e94777 h1:003p0dJM77cxMSyCPFphvZf/Y5/NXf5fzg6ufd1/Oew= | ||
golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= | ||
golang.org/x/net v0.0.0-20210220033124-5f55cee0dc0d h1:1aflnvSoWWLI2k/dMUAl5lvU1YO4Mb4hz0gh+1rjcxU= | ||
golang.org/x/net v0.0.0-20210220033124-5f55cee0dc0d/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= | ||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | ||
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||
golang.org/x/sys v0.0.0-20210105210732-16f7687f5001 h1:/dSxr6gT0FNI1MO5WLJo8mTmItROeOKTkDn+7OwWBos= | ||
golang.org/x/sys v0.0.0-20210105210732-16f7687f5001/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c h1:VwygUrnw9jn88c4u8GD3rZQbqrP/tgas88tPUbBxQrk= | ||
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||
golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43 h1:SgQ6LNaYJU0JIuEHv9+s6EbhSCwYeAf5Yvj6lpYlqAE= | ||
golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= | ||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= | ||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= | ||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= | ||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= | ||
golang.zx2c4.com/wireguard v0.0.0-20210212170059-7a0fb5bbb172 h1:g1vFilCRox6yINkkKFt+Dj4T22qjxp63yNzR1BjgmEE= | ||
golang.zx2c4.com/wireguard v0.0.0-20210212170059-7a0fb5bbb172/go.mod h1:r0ExowOoGFfDoLDxx+M9SYbNVsoZ0xviLL+K4f2mt+A= | ||
golang.zx2c4.com/wireguard v0.0.0-20210222142647-219296a1e787 h1:zrctiUlt4hD1sgxBYrG5CAjobVhpdxnUXy+qyWWLR1w= | ||
golang.zx2c4.com/wireguard v0.0.0-20210222142647-219296a1e787/go.mod h1:LofpIKqPJNvHiwKXuzsBshJCTe7IgRAz3iizquljFDk= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
From 1d1ba1da11afd73008c0e942db7621697055a6b6 Mon Sep 17 00:00:00 2001 | ||
From b83553d9f260ba20c6faaa52e6fe6f74309eb41a Mon Sep 17 00:00:00 2001 | ||
From: "Jason A. Donenfeld" <[email protected]> | ||
Date: Tue, 15 Sep 2020 13:39:22 +0200 | ||
Date: Mon, 22 Feb 2021 02:36:03 +0100 | ||
Subject: [PATCH] runtime: use CLOCK_BOOTTIME in nanotime on Linux | ||
|
||
This makes timers account for having expired while a computer was | ||
|
@@ -28,10 +28,10 @@ Change-Id: I7b2a6ca0c5bc5fce57ec0eeafe7b68270b429321 | |
8 files changed, 11 insertions(+), 11 deletions(-) | ||
|
||
diff --git a/src/runtime/sys_linux_386.s b/src/runtime/sys_linux_386.s | ||
index 5b9b638ad7..448ad8b2e6 100644 | ||
index 1e3a834812..78b6021fc7 100644 | ||
--- a/src/runtime/sys_linux_386.s | ||
+++ b/src/runtime/sys_linux_386.s | ||
@@ -339,13 +339,13 @@ noswitch: | ||
@@ -337,13 +337,13 @@ noswitch: | ||
|
||
LEAL 8(SP), BX // &ts (struct timespec) | ||
MOVL BX, 4(SP) | ||
|
@@ -48,18 +48,18 @@ index 5b9b638ad7..448ad8b2e6 100644 | |
INVOKE_SYSCALL | ||
|
||
diff --git a/src/runtime/sys_linux_amd64.s b/src/runtime/sys_linux_amd64.s | ||
index fe9c6bce85..4836a7c774 100644 | ||
index 37cb8dad03..e8b730bcaa 100644 | ||
--- a/src/runtime/sys_linux_amd64.s | ||
+++ b/src/runtime/sys_linux_amd64.s | ||
@@ -311,7 +311,7 @@ noswitch: | ||
MOVQ runtime·vdsoClockgettimeSym(SB), AX | ||
CMPQ AX, $0 | ||
JEQ fallback | ||
@@ -302,7 +302,7 @@ noswitch: | ||
SUBQ $16, SP // Space for results | ||
ANDQ $~15, SP // Align for C code | ||
|
||
- MOVL $1, DI // CLOCK_MONOTONIC | ||
+ MOVL $7, DI // CLOCK_BOOTTIME | ||
LEAQ 0(SP), SI | ||
CALL AX | ||
MOVQ 0(SP), AX // sec | ||
MOVQ runtime·vdsoClockgettimeSym(SB), AX | ||
CMPQ AX, $0 | ||
diff --git a/src/runtime/sys_linux_arm.s b/src/runtime/sys_linux_arm.s | ||
index 475f52344c..bb567abcf4 100644 | ||
--- a/src/runtime/sys_linux_arm.s | ||
|
@@ -105,10 +105,10 @@ index 198a5bacef..9715387f36 100644 | |
CBZ R2, fallback | ||
|
||
diff --git a/src/runtime/sys_linux_mips64x.s b/src/runtime/sys_linux_mips64x.s | ||
index afad056d06..2c9162b903 100644 | ||
index c3e9f37694..e3879acd38 100644 | ||
--- a/src/runtime/sys_linux_mips64x.s | ||
+++ b/src/runtime/sys_linux_mips64x.s | ||
@@ -304,7 +304,7 @@ noswitch: | ||
@@ -312,7 +312,7 @@ noswitch: | ||
AND $~15, R1 // Align for C code | ||
MOVV R1, R29 | ||
|
||
|
@@ -157,5 +157,5 @@ index c15a1d5364..f52c4d5098 100644 | |
MOVW $SYS_clock_gettime, R1 | ||
SYSCALL | ||
-- | ||
2.28.0 | ||
2.30.1 | ||
|