Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-11-22 | wintun: manage ring memory manually | Jason A. Donenfeld | |
It's large and Go's garbage collector doesn't deal with it especially well. | |||
2019-10-30 | constants: recalculate rekey max based on a one minute flood | Jason A. Donenfeld | |
Discussed-with: Mathias Hall-Andersen <mathias@hall-andersen.dk> | |||
2019-10-22 | global: fix a few typos courtesy of codespell | Jonathan Tooker | |
Signed-off-by: Jonathan Tooker <jonathan.tooker@netprotect.com> | |||
2019-10-21 | device: allow blackholing sockets | Jason A. Donenfeld | |
2019-10-21 | device: remove dead error reporting code | Jason A. Donenfeld | |
2019-10-21 | namespaceapi: remove tasteless comment | Jason A. Donenfeld | |
2019-10-17 | device: recheck counters while holding write lock | Jason A. Donenfeld | |
2019-10-17 | wintun: normalize variable names for their types | Jason A. Donenfeld | |
2019-10-17 | wintun: quickly ignore non-Wintun devices | Avery Pennarun | |
Some devices take ~2 seconds to enumerate on Windows if we try to get their instance name. The hardware id property, on the other hand, is available right away. Signed-off-by: Avery Pennarun <apenwarr@gmail.com> [zx2c4: inlined this to where it makes sense, reused setupapi const] | |||
2019-10-17 | tun: match windows CreateTUN signature to the Linux variant | Avery Pennarun | |
Signed-off-by: Avery Pennarun <apenwarr@gmail.com> [zx2c4: fix default value] | |||
2019-10-17 | rwcancel: handle EINTR and EAGAIN in unixSelect() | Avery Pennarun | |
On my Chromebook (Linux 4.19.44 in a VM) and on an AWS EC2 machine, select() was sometimes returning EINTR. This is harmless and just means you should try again. So let's try again. This eliminates a problem where the tunnel fails to come up correctly and the program needs to be restarted. Signed-off-by: Avery Pennarun <apenwarr@gmail.com> | |||
2019-10-16 | device: test packets between two fake devices | David Crawshaw | |
Signed-off-by: David Crawshaw <crawshaw@tailscale.io> | |||
2019-10-12 | version: bump snapshot | Jason A. Donenfeld | |
2019-10-08 | Makefile: remove v prefix | Jason A. Donenfeld | |
2019-10-08 | wintun: expose version | Jason A. Donenfeld | |
2019-10-04 | uapi: allow preventing creation of new peers when updating | Jason A. Donenfeld | |
This enables race-free updates for wg-dynamic and similar tools. Suggested-by: Thomas Gschwantner <tharre3@gmail.com> | |||
2019-10-04 | mod: bump versions | Jason A. Donenfeld | |
2019-09-16 | winpipe: use x/sys/windows instead of syscall | Jason A. Donenfeld | |
2019-09-16 | wintun: use correct length for security attributes | Jason A. Donenfeld | |
2019-09-08 | tun: windows: unify error message format | Jason A. Donenfeld | |
2019-09-08 | version: bump snapshot | Jason A. Donenfeld | |
2019-09-08 | main: simplify warnings | Jason A. Donenfeld | |
2019-09-07 | tun: openbsd: check for interface already being up | Jason A. Donenfeld | |
In some cases, we operate on an already-up interface, or the user brings up the interface before we start monitoring. For those situations, we should first check if the interface is already up. This still technically races between the initial check and the start of the route loop, but fixing that is a bit ugly and probably not worth it at the moment. Reported-by: Theo Buehler <tb@theobuehler.org> | |||
2019-09-05 | namespaceapi: AddSIDToBoundaryDescriptor modifies the handle | Jason A. Donenfeld | |
2019-09-01 | wintun: take mutex first always | Jason A. Donenfeld | |
This prevents an ABA deadlock with setupapi's internal locks. | |||
2019-09-01 | wintun: consider abandoned mutexes as released | Jason A. Donenfeld | |
2019-08-31 | ipc: windows: use protected prefix | Jason A. Donenfeld | |
2019-08-30 | winpipe: enforce ownership of client connection | Jason A. Donenfeld | |
2019-08-30 | wintun: put mutex into private namespace | Jason A. Donenfeld | |
2019-08-30 | namespaceapi: fix mistake | Jason A. Donenfeld | |
2019-08-30 | namespaceapi: initial version | Simon Rozman | |
Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-08-30 | wintun: take mutex so that deletion uses the right name | Jason A. Donenfeld | |
2019-08-29 | wintun: move ring constants into module | Jason A. Donenfeld | |
2019-08-29 | wintun: delete all interfaces is not used anymore | Jason A. Donenfeld | |
2019-08-29 | wintun: Wintun->Interface | Jason A. Donenfeld | |
2019-08-29 | wintun: keep reference to pool in wintun object | Jason A. Donenfeld | |
2019-08-29 | wintun: introduce adapter pools | Simon Rozman | |
This makes wintun package reusable for non-WireGuard applications. Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-08-28 | wintun: simplify rename logic | Jason A. Donenfeld | |
2019-08-28 | wintun: give better errors when ndis interface listing fails | Jason A. Donenfeld | |
2019-08-28 | wintun: also check for numbered suffix and friendly name | Jason A. Donenfeld | |
2019-08-28 | wintun: upgrade deleting all interfaces and make it reusable | Simon Rozman | |
DeleteAllInterfaces() didn't check if SPDRP_DEVICEDESC == "WireGuard Tunnel". It deleted _all_ Wintun adapters, not just WireGuard's. Furthermore, the DeleteAllInterfaces() was upgraded into a new function called DeleteMatchingInterfaces() for selectively deletion. This will be used by WireGuard to clean stale Wintun adapters. Signed-off-by: Simon Rozman <simon@rozman.si> | |||
2019-08-27 | wintun: cleanup earlier | Jason A. Donenfeld | |
2019-08-27 | wintun: rename duplicate adapters instead of ourselves | Jason A. Donenfeld | |
2019-08-26 | wintun: match suffix numbers | Jason A. Donenfeld | |
2019-08-25 | device: getsockname on linux to determine port | Jason A. Donenfeld | |
It turns out Go isn't passing the pointer properly so we wound up with a zero port every time. | |||
2019-08-24 | wintun: make description consistent across fields | Jason A. Donenfeld | |
2019-08-22 | wintun: try multiple names until one isn't a duplicate | Jason A. Donenfeld | |
2019-08-21 | wintun: use nci.dll directly instead of buggy netshell | Jason A. Donenfeld | |
2019-08-20 | wintun: set friendly a bit better | Jason A. Donenfeld | |
This is still wrong, but NETSETUPPKEY_Driver_FriendlyName seems a bit tricky to use. | |||
2019-08-19 | wintun: also set friendly name after setting interface name | Jason A. Donenfeld | |