Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/SagerNet/wireguard-go

Mirror only. Official repository is at https://git.zx2c4.com/wireguard-go
https://github.com/SagerNet/wireguard-go

ipc/winpipe: go fmt

Signed-off-by: Matt Layher <[email protected]>

80ef2a42e66a9cb57f806ca49361b9e2a5e6c45f authored over 5 years ago by Matt Layher <[email protected]>
tun: windows: mitigate infinite loop in Flush()

It's possible that for whatever reason, we keep returning EOF, resulting
in repeated close/open/...

da61947ec3717fbfdc84d98866ab60e82f154ce0 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
device: add SendKeepalivesToPeersWithCurrentKeypair for handover

d9f995209c3cc7bda242e8752680d78684fd62e4 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
tai64n: account for whitening in test

d0ab883adaae3b458ec6a54af04c9df347f378f5 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
device, tun: rearrange code and fix device tests

Signed-off-by: Matt Layher <[email protected]>

32912dc778a0b98637fbfe010b31bd0b746662e6 authored over 5 years ago by Matt Layher <[email protected]>
wintun: remove extra /

d4034e5f8a298c263c820d13a7758436f5e1b89b authored over 5 years ago by Jason A. Donenfeld <[email protected]>
device: darwin actually doesn't need bound interfaces

fbcd995ec1d2d3705c7665192341d05e35d21917 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
device: make initiations per second match kernel implementation

e7e286ba6cf7a952279d5007f71c7d38cb510610 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
device: timers: add jitter on ack failure reinitiation

f70546bc2e5888de0530dfd0f97d8556a98bba68 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
wintun: revise GetInterface()

- Make foreign interface found error numeric to ease condition
detection.
- Update GetInterfac...

6a0a3a54067182aee4c2cb4c7ef7ac5aaf2fd961 authored over 5 years ago by Simon Rozman <[email protected]>
wintun: never return nil, nil

8fdcf5ee30d9576b5ddb163180f5d5506a349eea authored over 5 years ago by Jason A. Donenfeld <[email protected]>
ipc: use simplified fork of winio

a74a29bc937cf75c1af4166e746df49ef53b2fc2 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
setupapi: trim "Get" from getters

Signed-off-by: Simon Rozman <[email protected]>

dc9bbec9dbca1daff8265b6e6da6b36185e74660 authored over 5 years ago by Simon Rozman <[email protected]>
wintun: don't try to flush interface, but rather delete

a6dbe4f4754de333a7ab4df6549d681edbb297fd authored over 5 years ago by Jason A. Donenfeld <[email protected]>
device: fail to give bind if it doesn't exist

c718f3940d6546f83cc14c4f121d52470a705c31 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
wintun: make certain methods private

95c70b803278a1725416498d58e04e0a93813a71 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
version: bump snapshot

583ebe99f10c769a2614dcc662c8f66165e801eb authored over 5 years ago by Jason A. Donenfeld <[email protected]>
makefile: do not show warning on non-linux

a6dd28260094f148053239f96a29825c5628db61 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
wintun: change acronyms to uppercase

Signed-off-by: Simon Rozman <[email protected]>

7d5f5bcc0dedc8272c8c3cdbc345876f24c4ecfe authored over 5 years ago by Simon Rozman <[email protected]>
global: regroup all imports

3bf41b06ae6ec9a558d3b1f1f315509ccef97010 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
wintun: registry: fix nits

3147f000897be94066069c1a703272b7e282a015 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
wintun: registry: revise value reading

- Make getStringValueRetry() reusable for reading any value type. This
merges code from GetInt...

6c1b66802f533f4b6ebad72147e1fd6fe11c6cd7 authored over 5 years ago by Simon Rozman <[email protected]>
wintun: call HrRenameConnection in another thread

5669ed326f1a1c535c1251f07a31323ec3c60ef1 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
wintun: add LUID accessor

2d847a38a29ed413f5907cc411c9ff4752001212 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
wintun: enumerate faster by using COMPATDRIVER instead of CLASSDRIVER

7a8553aef00449867816fdbba54a02ae748eefca authored over 5 years ago by Jason A. Donenfeld <[email protected]>
wintun: destroy devinfolist after usage

a6045ac0423472d849f7a173da1703adf3e0c51d authored over 5 years ago by Jason A. Donenfeld <[email protected]>
wintun: registry: replace REG_NOTIFY with NOTIFY

Signed-off-by: Simon Rozman <[email protected]>

1c92b48415e7f68cce859b4adf95c5d1ce5df9e9 authored over 5 years ago by Simon Rozman <[email protected]>
wintun: IpConfig is a MULTI_SZ, and fix errors

c267965bf888de5abc66cc37b7ea61de12cbfc62 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
wintun: poll for device key

It's actually pretty hard to guess where it is.

1bf1dadf15d04aae6b309abf1d2cdebadb81418c authored over 5 years ago by Jason A. Donenfeld <[email protected]>
wintun: fix scope of error object

f9dcfccbb7f918d699c0a922f3b8638c366516b4 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
wintun: wait for interface registry key on device creation

By using RegNotifyChangeKeyValue(). Also disable dead gateway detection.

Signed-off-by: Simon R...

7e962a9932667f4a161b20aba5ff1c75ab8e578a authored over 5 years ago by Simon Rozman <[email protected]>
conn: remove scope when sanity checking IP address format

586112b5d78abc99c9858c9a9a40756d5854d311 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
wintun: fix GUID leading zero padding

Signed-off-by: Simon Rozman <[email protected]>

dcb8f1aa6b14e538b76146d89f834b0ca98240af authored over 5 years ago by Simon Rozman <[email protected]>
mod: update deps

b16b0e4cf705ca9c6707a3d7a843b759efd12392 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
setupapi: safer aliasing of slice types

81ca08f1b3ebd3d7b893e0bb39cd00e97827e1f7 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
wintun: work around GetInterface staleness bug

2e988467c2c9b7a94369f605bad6b08c70a9df7e authored over 5 years ago by Jason A. Donenfeld <[email protected]>
wintun: don't retry when not creating

The only time we're trying to counteract the race condition is when
we're creating a driver. Whe...

46dbf5404013e83867356ea8a590a45a569acbf4 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
wintun: try harder to open registry key

This sucks. Can we please find a deterministic way of doing this
instead?

247e14693adb3d7a337ec57a4d2db374fb9099cd authored over 5 years ago by Jason A. Donenfeld <[email protected]>
go.mod: use vendored winio

3945a299ff0143459ca8d9bd37ec45ecd7d276bc authored over 5 years ago by Jason A. Donenfeld <[email protected]>
tun: freebsd: work around numerous kernel panics on shutdown

There are numerous race conditions. But even this will crash it:

while true; do ifconfig tun0 c...

bb42ec7d185ab5f5cd3867ac1258edff86b7f307 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
setupapi: Fix struct size mismatches

Signed-off-by: Simon Rozman <[email protected]>

f1dc167901aeba499cbed20e7134009702026020 authored over 5 years ago by Simon Rozman <[email protected]>
setupapi: actually fix padding by rounding up to sizeof(void*)

c7a26dfef35579bf24059748fae7a87cabfe166f authored over 5 years ago by Jason A. Donenfeld <[email protected]>
tun: darwin: write routeSocket variable in helper

Otherwise the race detector "complains".

d0243933350ffdb45a3981b5015932daa603a83b authored over 5 years ago by Jason A. Donenfeld <[email protected]>
main: revise warnings

d9078fe772e8314f435c554d8f9b05ddfb0db9bf authored over 5 years ago by Jason A. Donenfeld <[email protected]>
device: send: check packet length before freeing element

d3dd991e4e6f670c5daba9ba81aaa226b85eb200 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
setupapi: Revise DrvInfoDetailData struct size calculation

Go adds trailing padding to DrvInfoDetailData struct in GOARCH=386 which
confuses SetupAPI expec...

5811447b382ce1197e9c76d676a65515309a5b60 authored over 5 years ago by Simon Rozman <[email protected]>
windows: use proper constants from updated x/sys

e0a8c22aa64d6a606cb03e3fd09eaa3e62a2f7c9 authored over 5 years ago by Jason A. Donenfeld <[email protected]>
conn: linux: RTA_MARK has moved to x/sys

0b77bf78cda24582688325cf3197866b60aed69e authored over 5 years ago by Jason A. Donenfeld <[email protected]>
tun: windows: Adopt new error codes returned by Wintun

Signed-off-by: Simon Rozman <[email protected]>

ef5f3ad80a43f48e037e9b665f2a3f3405396569 authored over 5 years ago by Simon Rozman <[email protected]>
tun: windows: do not sleep after OPERATION_ABORTED on write

Signed-off-by: Simon Rozman <[email protected]>

a291fdd7462768dd54e433f8319c780448a44f7d authored over 5 years ago by Simon Rozman <[email protected]>
main_windows: use proper version constant

d50e390904ea602ce8d007361fc24ca5ab0c739c authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
version: put version in right place

18fa270472650553266bda78dbe1764224faaa73 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
version: bump snapshot

f156a53ff46eeeb66b658380274c8edc9562f6fc authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
tun: windows: do not sleep after OPERATION_ABORTED

e680008700e4a187c6f13ccc1ba4c9aeac8dddf9 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
tun: windows: Retry R/W on ERROR_OPERATION_ABORTED

Signed-off-by: Simon Rozman <[email protected]>

767c86f8cb9388486fbcde8b0aa66a2b10cf3e2b authored almost 6 years ago by Simon Rozman <[email protected]>
tun: windows: Attempt to reopen handle on all errors

Signed-off-by: Simon Rozman <[email protected]>

421c1f9143347d279c5a296a302720754b2a21b2 authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: rename device using undocumented API that netsh.exe uses

ac25702eaf13bb2243f02130ae271ff600f75209 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
wintun: add more retry loops

92f847483200a63193d55418381e685621b24e5c authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
tun: windows: cancel ongoing reads on closing and delete after close

This reverts commit 52ec440d7977fad966002c3710ed9df957943407 and adds
some spice.

2e0ed4614addc5e1842cf652c5d23779581ca7f2 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
wintun: query for NetCfgInstanceId several times

2fa80c0cb7453ab830355b4c612192ec3064865c authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
tun: windows: delete interface before deleting file handles

52ec440d7977fad966002c3710ed9df957943407 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
tun: windows: Make adapter rename asynchronous

Signed-off-by: Simon Rozman <[email protected]>

2faf2dcf908f96fccbfacc8e74b68c2cc4a929c7 authored almost 6 years ago by Simon Rozman <[email protected]>
tun: windows: Adapter devices renamed to WINTUN<LUID Index>

Signed-off-by: Simon Rozman <[email protected]>

41c30a72791999aac8973b82224d3d4b9162dd51 authored almost 6 years ago by Simon Rozman <[email protected]>
tun: windows: Increase unavailable adapter timeout to 30sec

5 seconds was too short when debugging.

Signed-off-by: Simon Rozman <[email protected]>

4b1db1d39bc6383ed360cfecc7cc9f1dac976dfa authored almost 6 years ago by Simon Rozman <[email protected]>
tun: windows: Fix paused adapter test

Signed-off-by: Simon Rozman <[email protected]>

9748a52073e247ece6110cf43f036beb940c80e4 authored almost 6 years ago by Simon Rozman <[email protected]>
tun: windows: Make writing persistent too

Signed-off-by: Simon Rozman <[email protected]>

a80db5e65e4c202bae184a32120017782549fdac authored almost 6 years ago by Simon Rozman <[email protected]>
tun: windows: just open two file handles

317d716d662f8b04be187df436565544de2eb1d5 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
receive: implement flush semantics

6440f010eec82abb9c999771a8f493af44c6b937 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
tun: windows: add dummy overlapped events back

These seem basically wrong to me, but we get crashes without them.

49ea0c9b1aca8662c2e520d84f7eed3019f2697a authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
tun: windows: use new constants in sys

ca59b60aa7767cd2ddd980d053e17ef29c52c0a3 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
uapi: remove unhelpful log messages

c050c6e60fc0207c063005e0cadded13195bd4c0 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
wintun: Use native Win32 API for I/O

Signed-off-by: Simon Rozman <[email protected]>

91b4e909bb5fe6980ec56983247e2bfb9fb70ee6 authored almost 6 years ago by Simon Rozman <[email protected]>
uapi: report endpoint error

2c51d6af48b8c6115852d72759c64aaaae5007d5 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
tun: windows: wintun does iocp

03f2e2614ad38317db77b499155995ee5e3d68c2 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
tun: windows: temporary hack for forcing MTU

b0e0ab308dd25651fa306e07071624032dab5eab authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
wintun: Poll more often

66fb5caf023eb893b5d3fbbda5009749d217a68b authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
uapi: make ipcerror conform to interface

3dd9a0535fd699b03fdc08b111d4a5d606f5bfdd authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
wintun: Return correct reboot-req flag on CreateInterface() error too

Signed-off-by: Simon Rozman <[email protected]>

70449f1a97dbd03cd48a695ded4cc36b336491fe authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: Make errors more descriptive

Signed-off-by: Simon Rozman <[email protected]>

c2a2b8d739cb67b71edd7b015a8050e624d93ab7 authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: Introduce SetupAPI enumerator and machineName consts

Signed-off-by: Simon Rozman <[email protected]>

30ab07e35486909fdae95e7ed01c7bf7635d4a8f authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: Fix double-quoted strings escaping on output

Signed-off-by: Simon Rozman <[email protected]>

33c35284305e0c70e014bac2bcc3eada070aba26 authored almost 6 years ago by Simon Rozman <[email protected]>
Windows: Apply strict security descriptor on pipe server

Signed-off-by: Odd Stranne <[email protected]>

a6d5ef82f4d90f3e997aa2ed4bf61414d6c39ee6 authored almost 6 years ago by Odd Stranne <[email protected]>
uapi: windows: work out pipe semantics

Pipes can be arranged like this, so that's fine. We also apply a strict
SDDL that can't be inher...

5c7cc256e39a772dcaeb879bb4371ecb68b3e280 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
wintun: Revise interface creation wait

DIF_INSTALLDEVICE returns almost immediately, while the device
installation continues in the bac...

11f57802506045a137d0e2022bfb16da4fc624f1 authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: Refactor network registry key name generation

Signed-off-by: Simon Rozman <[email protected]>

9b22255cadab050a1788d02917907b7a67e4d358 authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: Cleanup

Signed-off-by: Simon Rozman <[email protected]>

368dea72fed3027c96a2e31c4c4af03dc730f8bd authored almost 6 years ago by Simon Rozman <[email protected]>
receive: squelch tear down error

26af6c4651dbba986c1d05162e9ef1906665da92 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
tun: linux: work out netpoll trick

92f72f5aa66d49cd36822fd3b973896e43a68d3e authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
wintun: Resolve some of golint warnings

Signed-off-by: Simon Rozman <[email protected]>

1fdf7b19a3b7237ad7e63ae3e08d77686649ec0e authored almost 6 years ago by Simon Rozman <[email protected]>
Elaborate the failing step when forwarding errors on return

Signed-off-by: Simon Rozman <[email protected]>

a1aabb21ae83652e581ccbc0b379c2781c768932 authored almost 6 years ago by Simon Rozman <[email protected]>
tun: import mobile particularities

68f0721c6a1aea6bb97320ec0cf6b8f7f723603d authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
Simplify reading NetCfgInstanceId from registry

As querying non-existing registry value and reading non-existing
registry string value both retu...

9041d38e2d99aa02c8c318c10b5e57a005c65a7d authored almost 6 years ago by Simon Rozman <[email protected]>
boundif: introduce API for socket binding

b8e85267cf22528a96cefba5f86bac5958ce0c58 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
Unify interface-specific network registry key open

Signed-off-by: Simon Rozman <[email protected]>

cddfd9a0d8d8c2dcdd778aa46ed32228d8f6cb93 authored almost 6 years ago by Simon Rozman <[email protected]>
global: begin modularization

69f0fe67b63d90e523a5a1241fb1b46c2e8dbe03 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
tun: windows: expose GUID

d435be35cac49af9367b2005d831d55e570c4b1b authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
tun: allow special methods in NativeTun

967d1a0f3d7aae4a0720895a2f6e35156b34214b authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
tun: linux: netpoll is broken for tun's epoll

So this mostly reverts the switch to Sysconn for Linux.

Issue: https://github.com/golang/go/iss...

88ff67fb6f55456e46877b71aa5d33060468f95e authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
tun: linux: netlink sock needs cleaning up but file will be gc'd

971be13e773f133a0a5ab08957725b43452202e2 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
tun: use netpoll instead of rwcancel

The new sysconn function of Go 1.12 makes this possible:

package main

import "log"
import "os"...

366cbd11a40a6a3fde5d0dc803ca6895859ed188 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>