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

tun: use sysconn instead of .Fd with Go 1.12

ab0f442dafba417c3a13d883a447e882d7983690 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
Rearrange imports

66524c1f7e1b94720e4551607eff15189b01c8d3 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
device: send persistent keepalive when bringing up device

Reported-by: Marcelo Bello

6e4460ae6518b2bcdbc3dc5472a407b56772d939 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
wintun: Read/write packet size from/to exchange buffer directly

Driver <-> user-space communication is local and using native endian.

Signed-off-by: Simon Rozm...

d002eff15589ffc384c8d7e8da5d7bd7e75720e4 authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: Make two-step slicing a one step

Stop relying to Go compiler optimizations and calculate the end offset
directly.

Signed-off-by:...

e06a8f8f9f571598bd3afa84b006e24262dbc420 authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: Write exchange buffer increased back to 1MiB

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

ac4944a70855bdd869eb070bd80700e789024579 authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: Migrate from unsafe buffer handling to encoding/binary

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

2491f9d4540cac7d38805531ab120e9f2d1cdfb3 authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: Adopt new packet data alignment

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

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

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

040da43889d0c3a08dc4469cb128b9f8015a78f8 authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: Add TUN device locking

In case reading from TUN device detected TUN device was closed, it
closed the file handle and se...

b7025b56274f65080d3c20a34a35ec5a07422792 authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: Move exchange buffer in separate struct on heap

This allows buffer alignment and keeps it together with its meta-data.

Furthermore, the write b...

6581cfb8850ee98dc9ee7aceb76e51b0de904db1 authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: Switch to dynamic packet sizes

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

486308912077a665006afa93c76b9fa377446d12 authored almost 6 years ago by Simon Rozman <[email protected]>
Change package path

42c6d0e2614414590361123344b7918c9bcc6430 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
Bump dependencies for ARM ChaCha20

f7170e5de2065f37bac647484b34711db4797394 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
wintun: Auto-calculate TUN exchange buffer size

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

b719a09a26041c696e213213cebdc8ecd30ad4f3 authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: Simplify Read method()

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

f05f52637f32319564a1be9c0564b4fab3e9093b authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: Make constants private and adopt Go recommended case

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

713477cfb174332f767db78143c2cf1eeb87bfb7 authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: Check for user close in read loop regardless the load

Do the WaitForSingleObject() always to provide high-load responsiveness.

Reorder events so TUN_...

5981d5cacff73b3ba9fc9619ea60f8fc3ad65295 authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: Adjust tunRWQueue.left member to match Wintun driver

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

b13739ada2cfa1c66672e7a4edfe339e394b1a4f authored almost 6 years ago by Simon Rozman <[email protected]>
setupapi: Merge SP_DRVINFO_DATA and DrvInfoData

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

b662896cf42acaf09bdee948de3bd6b9abea257c authored almost 6 years ago by Simon Rozman <[email protected]>
setupapi: Merge _SP_DRVINFO_DETAIL_DATA and DrvInfoDetailData

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

c4988999ac073db9e08a4efdb2f82a3d4f32f25d authored almost 6 years ago by Simon Rozman <[email protected]>
setupapi: Rename SP_CLASSINSTALL_HEADER to ClassInstallHeader

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

9d830826c53d9b8cd14cf0fcd43fdf4183de4c47 authored almost 6 years ago by Simon Rozman <[email protected]>
setupapi: Rename SP_REMOVEDEVICE_PARAMS to RemoveDeviceParams

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

0525f6b112b21250f028c1373bbd4ecf3df1702b authored almost 6 years ago by Simon Rozman <[email protected]>
setupapi: Merge _SP_DEVINSTALL_PARAMS and DevInstallParams

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

bd963497da908d3910668dab9dab4ac7654a638a authored almost 6 years ago by Simon Rozman <[email protected]>
setupapi: Merge _SP_DEVINFO_LIST_DETAIL_DATA and DevInfoListDetailData

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

05d25fd1b71aaad8f542999851d472d63b724ae2 authored almost 6 years ago by Simon Rozman <[email protected]>
setupapi: Rename SP_DEVINFO_DATA to DevInfoData

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

6d2729dcccc7d02a2578ee28580b351769868b03 authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: Detect if a foreign interface with the same name exists

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

d87cbeeb2fb152b5f377758c68c655e09fe177f3 authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: Clean excessive setupapi.DevInfo.GetDeviceInfoListDetail() call

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

043b7e8013674d58757fe3d3f4e4cacf89c46112 authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: Explain rationale behind case-insensitive interface names

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

ef48d4fa957f0ae7db3e9ad51c0d443ccc410588 authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: Implement TODO in TestSetupDiGetDeviceRegistryProperty()

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

f7276ed522dd31ef427ec939ed2dc3af32071974 authored almost 6 years ago by Simon Rozman <[email protected]>
wintun: add FlushInterface stub

c4b43e35a772305858e610d879c2b9d47f4d9866 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
main_windows: Get iface name from argument

2efafecab5ee755a2b73e02ad340ab7f701e4f84 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
wintun: Compare values of GUID, not pointers, when removing

fac1fbcd7254d8fd2bf28ed12eeb3ce88b35a1af authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
main_windows: Catch more exit events

52aa00f3ba08371e3a683fa995f66ccf1c0024cd authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
wintun: Introduce new package for obscuring Windows bits

ea59177f1c6ab9031d5d30771410c9514fa551d9 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
tun_windows: Style

306d08e692bc9b2249078c0b4ab7eb3e42078230 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
setupapi: Lower case params

3b7a4fa3ef9540aced469f1d7bd8726a28351a76 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
setupapi: Do not export the toGo/toWindows functions

223685875faa568d97ff1d5324fe994d24f618e7 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
setupapi: Pass pointers instead of values

652158ec3ce59aa45c610b6db2fa32ce92ab8cce authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
tun_windows: Introduce preliminary TUN interface creation

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

cb2bc4b34c281cf6ba61fc9723244e591854cd8f authored almost 6 years ago by Simon Rozman <[email protected]>
tun_windows: Stop checking minimum size of received TUN packets

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

46279ad0f9561fb98c562c2c9dcc3f431357b26b authored almost 6 years ago by Simon Rozman <[email protected]>
setupapi: Add DrvInfoDetailData.IsCompatible() to simplify HID detection

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

73df1c08719960c7002e521ce7466d1cc9e93ca6 authored almost 6 years ago by Simon Rozman <[email protected]>
setupapi: Add SP_DRVINFO_DATA.IsNewer() method to simplify comparison

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

069016bbc4fac01260f2addd70b67bce5ebeac70 authored almost 6 years ago by Simon Rozman <[email protected]>
setupapi: Make toUTF16() public and add UTF16ToBuf() counterpart

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

3c29434a79f5af9ce668f699105778f36417a5d6 authored almost 6 years ago by Simon Rozman <[email protected]>
setupapi: Add support for driver info lists

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

3e8f2e3fa58b5825cfb3a2dbcf4591a882ecf92b authored almost 6 years ago by Simon Rozman <[email protected]>
Fix up errors and paths

c599bf9497e4180231fc7846193d26f3ed9de349 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
setupapi: Move Go<>Windows struct marshaling to types_windows.go

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

7b636380e50f257e7f1b98b6b5829a24166e2000 authored almost 6 years ago by Simon Rozman <[email protected]>
conn: close ipv4 socket when ipv6 socket fails

f7f63765d1ea5e5ce6bc6757d5ad335dcdb4f2a1 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
Extend structs rather than embed, when possible

89d2c5ed7a054bc05a21209d5a9c79ad7151f8f7 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
Finish support for setupapi.SetupDiGetClassDevsEx()

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

d41bc015ccc06feedd21c0a87b0a44a02b74d530 authored almost 6 years ago by Simon Rozman <[email protected]>
Update exported types and functions annotations

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

25e18d01e66f4949ee64651177b2ade7199893c1 authored almost 6 years ago by Simon Rozman <[email protected]>
Add support for setupapi.SetupDiCallClassInstaller()

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

269944002fcd2f48cda25d564068a14159d179e2 authored almost 6 years ago by Simon Rozman <[email protected]>
setupapi: Add support for SetupDi(Get|Set)DeviceRegistryProperty()

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

99a3b628e9f2405a4acaa84c7a8fb74cfa6bbe6e authored almost 6 years ago by Simon Rozman <[email protected]>
Change generic local variable names with meaningful replacements

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

20f1512b7c5bdc0fc0b7aaf53fa9d6eba8f7d0a6 authored almost 6 years ago by Simon Rozman <[email protected]>
Stop accessing SetupDiGetDeviceInfoListDetail() output on error

The data returned by SetupDiGetDeviceInfoListDetail() is nil on error
which will cause the test ...

963be8e993ae5688f3b0c490813a95391ec98c53 authored almost 6 years ago by Simon Rozman <[email protected]>
Add support for setupapi.SetupDiClassNameFromGuid()

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

9635a0b3a69272aac998fad700344fac392d2adf authored almost 6 years ago by Simon Rozman <[email protected]>
Add support for setupapi.SetupDiEnumDeviceInfo()

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

955d8dfe04fa87d265bb1ccb671db05a323eb86f authored almost 6 years ago by Simon Rozman <[email protected]>
uapi: Simpler function signature

2b7562abbb9aad20214387492b8f4f2d089c6738 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
Add support for setupapi.SetupDi(Get|Set)ClassInstallParams()

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

a5a1ece32f96416bba9515d22555c6df86a379bb authored almost 6 years ago by Simon Rozman <[email protected]>
tai64n: whiten nano seconds

Avoid being too precise of a time oracle.

a5ca02d79a953c883694061bba5c683b220fbfe4 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
Stop checking for valid handle in DevInfo.Close()

User should not have called or deferred the Close() method should
SetupDiGetClassDevsEx() return...

90b6938ca04d49240ddcd1a50650489f3fe3f26b authored almost 6 years ago by Simon Rozman <[email protected]>
Add support for setupapi.SetupDiOpenDevRegKey()

Furthermore setupapi.DevInfoData has been obsoleted.
SetupDiEnumDeviceInfo() fills existing SP_D...

dce5192d860888e6af3e7fa8a7e4b2c776274e69 authored almost 6 years ago by Simon Rozman <[email protected]>
Add support for setupapi.SetupDiGetDeviceInfoListDetail()

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

45959c116aae4c81e0be7bec8ab21d2f715caddf authored almost 6 years ago by Simon Rozman <[email protected]>
Add support for setupapi.SetupDiCreateDeviceInfo()

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

dd998ca86ac47869e2ff577b63b961e470a88c9b authored almost 6 years ago by Simon Rozman <[email protected]>
Update copyright

dff424baf8acc4d2a5858d3947761c5090d8e640 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
Clean an unused constant

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

f81882ee8b8a0613fb52670a2a48e92d5a2fa987 authored almost 6 years ago by Simon Rozman <[email protected]>
Replace SetupDiClassNameFromGuid() with SetupDiClassNameFromGuidEx()

The former is only a subset of the later. To minimize future
maintenance, we'll provide support ...

3e0e61dd26d900eb6eaf826200241cbf84cd068d authored almost 6 years ago by Simon Rozman <[email protected]>
setupapi: Introduce DevInfo methods for cleaner code

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

e7ffce0d21ee87f36a86d854fed5a6d18d9fa4bf authored almost 6 years ago by Simon Rozman <[email protected]>
noise: store clamped key instead of raw key

3af9aa88a310f7c2b86bae1ebb3ed3843424ce9e authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
Unify certain variable names

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

e821cdabd2930d301d3a12a5d4d1fe8904cd1c14 authored almost 6 years ago by Simon Rozman <[email protected]>
Reorder data-types and functions to match SetupAPI.h

Adding functions with non-consistent order made setupapi package a mess.
While we could reorder ...

c15cbefc1283ce630d35573856fed2bf71eb0292 authored almost 6 years ago by Simon Rozman <[email protected]>
Simplify SetupDiEnumDeviceInfo() synopsis

The SetupDiEnumDeviceInfo() now returns a SP_DEVINFO_DATA rather than
taking it on input to fill...

38c7acd70f408e63a70ff45f01d0a22f2c4ac2c7 authored almost 6 years ago by Simon Rozman <[email protected]>
Introduce SetupAPI - Windows device and driver management API

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

31949136df477c5699d7476e909d9bf30a0904cc authored almost 6 years ago by Simon Rozman <[email protected]>
Add support for setupapi.setupDiCreateDeviceInfoListEx()

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

024a4916c245ca6b15b65995fae2002f50b11186 authored almost 6 years ago by Simon Rozman <[email protected]>
Import windows scafolding

6f76edd045e20435689d9e1a3dd221b40b49adc6 authored almost 6 years ago by Jason A. Donenfeld <[email protected]>
Add support for setupapi.SetupDi(Get|Set)DeviceInstallParams()

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

f1d5db6547738a24b660d766d0690bb9642cc1bb authored almost 6 years ago by Simon Rozman <[email protected]>
Add support for setupapi.SetupDi(Get|Set)SelectedDevice()

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

35f72239ac428c41e9e3bba9f06c67d0eff3de8a authored almost 6 years ago by Simon Rozman <[email protected]>
Add support for setupapi.SetupDiClassGuidsFromNameEx()

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

348b4e9f7cd22f1f789677670351a3810b69cb7b authored almost 6 years ago by Simon Rozman <[email protected]>
Properly bubble up setsockopt error from closure

6e61c369e8bf934688aeadae86f04fe25566320a authored about 6 years ago by Jason A. Donenfeld <[email protected]>
version: bump snapshot

8fde8334dcf3a7f3934159f45b6fc1d5f4be8a90 authored about 6 years ago by Jason A. Donenfeld <[email protected]>
Make error messages consistent

a8326ae753975e73602958c1d7bbfe1174912ff9 authored about 6 years ago by Jason A. Donenfeld <[email protected]>
Freebsd is finally normal in sys/unix

05cc0c829821d43cb45dc777e8dbde296304cbeb authored about 6 years ago by Jason A. Donenfeld <[email protected]>
Separate out mark setting for Windows

c967f15e443a5953429000e50fad2e117992b72d authored about 6 years ago by Jason A. Donenfeld <[email protected]>
Use upstream's xchacha20poly1305

5ace0fdfe237b2062c060fbe30d6fb40965fb1b9 authored about 6 years ago by Jason A. Donenfeld <[email protected]>
Update go x/ libraries

Android 9's Bionic disallows inotify_init with seccomp, so we want the
latest unix change, and w...

849fa400e915ece69c4fbaed0f261b9b4efcb565 authored about 6 years ago by Jason A. Donenfeld <[email protected]>
tun: remove nonblock hack for linux

This is no longer necessary and actually breaks things

Reported-by: Chris Branch <cbranch@cloud...

651744561e9e31197d8ebb59f97ab3dae3c39687 authored about 6 years ago by Jason A. Donenfeld <[email protected]>
tai64n: use proper nanoseconds offset

The code before was obviously wrong.

Reported-by: Vlad Krasnov <[email protected]>

4fd55daafe64f6101dde5c0a8a6887fef0ff0545 authored about 6 years ago by Jason A. Donenfeld <[email protected]>
Use darwin tun on ios

276bf973e8a086da7767dc25ebe116926c0b59db authored about 6 years ago by Jason A. Donenfeld <[email protected]>
uapi: typo

c37c4ece9efd1b7afc952905ad44a10e4c5d45d7 authored about 6 years ago by Jason A. Donenfeld <[email protected]>
receive: make started status uniform

b803276061b23076aa9dad8a5683973c0a51ac50 authored about 6 years ago by Jason A. Donenfeld <[email protected]>
send: do not unlock already freed object

8be1fc9c00407b85073ed66d95f12202df674ccb authored about 6 years ago by Jason A. Donenfeld <[email protected]>
version: bump snapshot

738d027f0bfc59e14384e36c44753d7b61fb1c43 authored about 6 years ago by Jason A. Donenfeld <[email protected]>
Makefile: rename default to all

60848b9c7227363d311948456198e129a37f80e0 authored about 6 years ago by Jason A. Donenfeld <[email protected]>
tun: only call .Fd() once

Doing so tends to make the tunnel blocking, so we only retrieve it once
before we call SetNonblo...

2e772194cf7cd7c37d24364a9f9d407dc96a25e8 authored about 6 years ago by Jason A. Donenfeld <[email protected]>
Use go modules always

85b2378a07126fb64460f0a23e7a150d0e63d909 authored about 6 years ago by Jason A. Donenfeld <[email protected]>
Do not build if nothing to do

fddb9490025c4c9b5fb1b77028a54fc92fa39c45 authored about 6 years ago by Jason A. Donenfeld <[email protected]>
Switch to go modules

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

b41922e5c81a8121734143f9b773f976cd891081 authored over 6 years ago by Jason A. Donenfeld <[email protected]>
Adding missing queueconstants file

dbb72402f2f4f5c972be98ad0c9602eb74e9f133 authored over 6 years ago by Jason A. Donenfeld <[email protected]>
Fix transport message length check

wireguard-go has a bad length check in its transport message handling.
Although it cannot be exp...

7c971d7ef458d47908940396149bf56e6335fb04 authored over 6 years ago by Chris Branch <[email protected]>