]>
git.ipfire.org Git - thirdparty/wireguard-go.git/log
Brady OBrien [Sat, 26 May 2018 01:43:22 +0000 (20:43 -0500)]
A bit more messing with tun_dragonfly
Brady OBrien [Fri, 25 May 2018 20:21:34 +0000 (15:21 -0500)]
Basic tun name behaviour implemented; now figuring out why it won't close
Brady OBrien [Fri, 25 May 2018 19:10:58 +0000 (14:10 -0500)]
First swing at dragonfly support
Jason A. Donenfeld [Thu, 24 May 2018 17:58:16 +0000 (19:58 +0200)]
Fix tests
Jason A. Donenfeld [Thu, 24 May 2018 16:00:45 +0000 (18:00 +0200)]
Trick for being extra sensitive to route changes
Jason A. Donenfeld [Thu, 24 May 2018 15:53:00 +0000 (17:53 +0200)]
Back to sticky sockets on android
Jason A. Donenfeld [Thu, 24 May 2018 14:41:42 +0000 (16:41 +0200)]
Do not build on Linux
Jason A. Donenfeld [Thu, 24 May 2018 13:29:16 +0000 (15:29 +0200)]
Catch EINTR
Jason A. Donenfeld [Thu, 24 May 2018 01:13:46 +0000 (03:13 +0200)]
Remove old makefile artifact
Jason A. Donenfeld [Thu, 24 May 2018 00:25:51 +0000 (02:25 +0200)]
version: bump snapshot
Jason A. Donenfeld [Wed, 23 May 2018 23:52:22 +0000 (01:52 +0200)]
Add undocumented --version flag
Jason A. Donenfeld [Wed, 23 May 2018 17:00:00 +0000 (19:00 +0200)]
Eye before ee except after see
Jason A. Donenfeld [Wed, 23 May 2018 16:30:55 +0000 (18:30 +0200)]
No zero sequence numbers
Jason A. Donenfeld [Wed, 23 May 2018 15:30:35 +0000 (17:30 +0200)]
Don't cause a new fake gopath to call dep
Jason A. Donenfeld [Wed, 23 May 2018 13:38:24 +0000 (15:38 +0200)]
Infoleak ifnames and be more permissive
Listing interfaces is already permitted by the OS, so we allow this info
leak too.
Jason A. Donenfeld [Wed, 23 May 2018 01:17:51 +0000 (03:17 +0200)]
Adopt GOPATH
GOPATH is annoying, but the Go community pushing me to adopt it is even
more annoying.
Jason A. Donenfeld [Wed, 23 May 2018 02:35:37 +0000 (04:35 +0200)]
Remove more windows cruft
Jason A. Donenfeld [Wed, 23 May 2018 00:41:41 +0000 (02:41 +0200)]
Cleanup
Jason A. Donenfeld [Wed, 23 May 2018 00:32:02 +0000 (02:32 +0200)]
Move replay into subpackage
Jason A. Donenfeld [Wed, 23 May 2018 00:10:54 +0000 (02:10 +0200)]
Move tun to subpackage
Jason A. Donenfeld [Tue, 22 May 2018 17:40:51 +0000 (19:40 +0200)]
Avoid sticky sockets on Android
The android policy routing system does insane things.
Jason A. Donenfeld [Tue, 22 May 2018 16:33:50 +0000 (18:33 +0200)]
Fix integer conversions
Jason A. Donenfeld [Tue, 22 May 2018 15:58:34 +0000 (17:58 +0200)]
Bump dependencies for OpenBSD
Jason A. Donenfeld [Tue, 22 May 2018 14:47:15 +0000 (16:47 +0200)]
Fix markdown
Jason A. Donenfeld [Tue, 22 May 2018 13:17:35 +0000 (15:17 +0200)]
Add OpenBSD tun driver support
Jason A. Donenfeld [Tue, 22 May 2018 12:59:29 +0000 (14:59 +0200)]
Fix code duplication
Jason A. Donenfeld [Mon, 21 May 2018 23:30:16 +0000 (01:30 +0200)]
Notes on FreeBSD limitations
Jason A. Donenfeld [Mon, 21 May 2018 23:27:29 +0000 (01:27 +0200)]
Just in case darwin changes, we also shutdown
Jason A. Donenfeld [Mon, 21 May 2018 23:26:47 +0000 (01:26 +0200)]
Call shutdown on route socket on freebsd
Filippo Valsorda [Mon, 21 May 2018 03:39:25 +0000 (23:39 -0400)]
Minor main.go signal fixes
* Buffer the signal channel as it's non-blocking on the sender side
* Notify on SIGTERM instead of the uncatchable SIGKILL
License: MIT
Signed-off-by: Filippo Valsorda <valsorda@google.com>
Filippo Valsorda [Mon, 21 May 2018 03:38:58 +0000 (23:38 -0400)]
Fix Sscanf use in tun_darwin
License: MIT
Signed-off-by: Filippo Valsorda <valsorda@google.com>
Filippo Valsorda [Mon, 21 May 2018 03:18:25 +0000 (23:18 -0400)]
Make successful tests silent
License: MIT
Signed-off-by: Filippo Valsorda <valsorda@google.com>
Filippo Valsorda [Mon, 21 May 2018 03:12:55 +0000 (23:12 -0400)]
Properly close DummyTUN to avoid deadlock in TestNoiseHandshake
License: MIT
Signed-off-by: Filippo Valsorda <valsorda@google.com>
Jason A. Donenfeld [Mon, 21 May 2018 18:13:39 +0000 (20:13 +0200)]
User cookie is closer to fwmark than setfib
Jason A. Donenfeld [Mon, 21 May 2018 17:00:58 +0000 (19:00 +0200)]
Remove broken windows cruft
Jason A. Donenfeld [Mon, 21 May 2018 15:27:18 +0000 (17:27 +0200)]
Rework freebsd support
Brady OBrien [Thu, 17 May 2018 22:58:54 +0000 (17:58 -0500)]
Add FreeBSD support
Signed-off-by: Brady OBrien <brady.obrien128@gmail.com>
Jason A. Donenfeld [Mon, 21 May 2018 12:16:46 +0000 (14:16 +0200)]
Close events channel when no status listener
Jason A. Donenfeld [Mon, 21 May 2018 01:38:50 +0000 (03:38 +0200)]
Straighten out UAPI logging
Jason A. Donenfeld [Mon, 21 May 2018 01:31:44 +0000 (03:31 +0200)]
Close hack listener before closing channel
Jason A. Donenfeld [Mon, 21 May 2018 01:18:56 +0000 (03:18 +0200)]
ratelimiter: do not run GC with nothing to do
Jason A. Donenfeld [Mon, 21 May 2018 00:50:39 +0000 (02:50 +0200)]
Reasonable punctuation given the spacing
Jason A. Donenfeld [Sun, 20 May 2018 04:50:07 +0000 (06:50 +0200)]
Fix data races in timers
Jason A. Donenfeld [Sun, 20 May 2018 04:38:39 +0000 (06:38 +0200)]
Fix race with closing event channel
There's still a tiny race on Linux, since the tun channel is written to
from two places.
Jason A. Donenfeld [Sun, 20 May 2018 04:29:46 +0000 (06:29 +0200)]
Style
Jason A. Donenfeld [Sun, 20 May 2018 04:25:39 +0000 (06:25 +0200)]
Remove unused mtu variable
Jason A. Donenfeld [Sun, 20 May 2018 04:19:29 +0000 (06:19 +0200)]
Give bind its own wait group
In a waitgroup, all waits must come after all adds
Jason A. Donenfeld [Sun, 20 May 2018 03:55:52 +0000 (05:55 +0200)]
Avoid deadlock when the mutex isn't required, since these are atomics
Maybe this fixes the "double lock issue" in
f73d2fb2d96bc3fbc8bc4cce452e3c19689de01e ?
Jason A. Donenfeld [Sun, 20 May 2018 03:43:22 +0000 (05:43 +0200)]
Use proper status listener on Darwin
Jason A. Donenfeld [Sun, 20 May 2018 02:03:11 +0000 (04:03 +0200)]
Reduce the hack listener to once a second
Jason A. Donenfeld [Sun, 20 May 2018 01:37:33 +0000 (03:37 +0200)]
Fix race in netlink peer correlator
Jason A. Donenfeld [Sun, 20 May 2018 01:31:27 +0000 (03:31 +0200)]
Fix race in lock pending
Jason A. Donenfeld [Sun, 20 May 2018 01:26:46 +0000 (03:26 +0200)]
Fix race in stats
Jason A. Donenfeld [Sun, 20 May 2018 01:24:14 +0000 (03:24 +0200)]
Fix race in packetInNonceQueueIsAwaitingKey
Jason A. Donenfeld [Sun, 20 May 2018 01:18:47 +0000 (03:18 +0200)]
Discourage building for Linux
Jason A. Donenfeld [Sat, 19 May 2018 00:35:56 +0000 (02:35 +0200)]
Revert "Temporary work around. Please revert me"
This reverts commit
4312a7c70a58656891ff1398f2d0d36f4ed74c8a .
Jason A. Donenfeld [Fri, 18 May 2018 23:52:17 +0000 (01:52 +0200)]
timers: no need to clear keepalive in persistent keepalive
We do this after sending the keepalive anyway.
This is something of a regression, though, since before we'd cancel and
then send, but now we send and then cancel, so it introduces a potential
race, but hopefully that isn't too big of a deal.
Kernel module commit
a24b3e6e15ae1ea1291666e5da910caf43eedbaf
Jason A. Donenfeld [Fri, 18 May 2018 23:19:53 +0000 (01:19 +0200)]
timers: clear send_keepalive timer on sending handshake response
We reorganize this into also doing so on sending keepalives itself,
which means the state machine is much more consistent, even if this was
already implied.
Kernel module commit
30290ef1d2581a3e6ee8ffcdb05d580cfba976be
Mathias Hall-Andersen [Fri, 18 May 2018 22:35:49 +0000 (00:35 +0200)]
Listen for flush in outer select
Now listen for flushNonceQueue signal in outer select during
the RoutineNonce routine. This is needed to handle the edge case
where the queue is flushed, but no packets are in the nonce queue.
Since the signal has capacity 1 this signal will remain and potentially
flush the queue at a later time, with packets meant for transmission.
Mathias Hall-Andersen [Fri, 18 May 2018 22:34:56 +0000 (00:34 +0200)]
Add copyright headers
Jason A. Donenfeld [Fri, 18 May 2018 03:02:35 +0000 (05:02 +0200)]
Avoid using v6-mapped-v4
Jason A. Donenfeld [Fri, 18 May 2018 01:56:27 +0000 (03:56 +0200)]
Style
Jason A. Donenfeld [Wed, 16 May 2018 21:25:59 +0000 (23:25 +0200)]
Fill out readme
Jason A. Donenfeld [Wed, 16 May 2018 20:20:15 +0000 (22:20 +0200)]
Finer-grained start-stop synchronization
Jason A. Donenfeld [Tue, 15 May 2018 17:57:43 +0000 (19:57 +0200)]
Fix dir permissions
Jason A. Donenfeld [Tue, 15 May 2018 17:56:06 +0000 (19:56 +0200)]
Temporary work around. Please revert me
Jason A. Donenfeld [Tue, 15 May 2018 16:38:18 +0000 (18:38 +0200)]
Lock timers on modification
Jason A. Donenfeld [Tue, 15 May 2018 13:26:06 +0000 (15:26 +0200)]
Avoid vendoring tooling as much as possible
Jason A. Donenfeld [Tue, 15 May 2018 12:21:33 +0000 (14:21 +0200)]
Add vendoring for Homebrew
Jason A. Donenfeld [Tue, 15 May 2018 11:29:52 +0000 (13:29 +0200)]
Do not send keepalive if closed
Jason A. Donenfeld [Tue, 15 May 2018 04:28:42 +0000 (06:28 +0200)]
Fix refactoring mistakes
Jason A. Donenfeld [Tue, 15 May 2018 00:15:16 +0000 (02:15 +0200)]
Improve makefile
Jason A. Donenfeld [Mon, 14 May 2018 18:06:33 +0000 (20:06 +0200)]
Use /dev/null as place holder
Jason A. Donenfeld [Mon, 14 May 2018 17:23:44 +0000 (19:23 +0200)]
Print utun name on darwin
Jason A. Donenfeld [Mon, 14 May 2018 15:57:58 +0000 (17:57 +0200)]
Mask IPs when showing from trie
Otherwise intermediate nodes that get collapsed to real nodes will
display the wrong value.
Jason A. Donenfeld [Mon, 14 May 2018 13:58:40 +0000 (15:58 +0200)]
Ugly hack to suppress warning on backgrounded process
Jason A. Donenfeld [Mon, 14 May 2018 13:49:20 +0000 (15:49 +0200)]
Better common bits function
Jason A. Donenfeld [Mon, 14 May 2018 12:47:31 +0000 (14:47 +0200)]
Fix noise test
Jason A. Donenfeld [Mon, 14 May 2018 12:18:26 +0000 (14:18 +0200)]
Cancelable netlink writes and better response correlation
Jason A. Donenfeld [Mon, 14 May 2018 12:08:03 +0000 (14:08 +0200)]
Netlink sockets can't be shutdown
Jason A. Donenfeld [Mon, 14 May 2018 10:46:06 +0000 (12:46 +0200)]
Cleanup socket file
Jason A. Donenfeld [Mon, 14 May 2018 10:27:29 +0000 (12:27 +0200)]
Clean more
Jason A. Donenfeld [Mon, 14 May 2018 04:10:08 +0000 (06:10 +0200)]
No more finalizer for rwcancel
Jason A. Donenfeld [Mon, 14 May 2018 02:36:20 +0000 (04:36 +0200)]
No need for padding any more
Jason A. Donenfeld [Mon, 14 May 2018 02:19:25 +0000 (04:19 +0200)]
Shorthand for empty channels
Jason A. Donenfeld [Mon, 14 May 2018 02:14:57 +0000 (04:14 +0200)]
Allow go routine to shutdown in darwin tun
Jason A. Donenfeld [Mon, 14 May 2018 01:55:46 +0000 (03:55 +0200)]
Add rwcancelation to darwin
Jason A. Donenfeld [Mon, 14 May 2018 01:43:56 +0000 (03:43 +0200)]
Smoother netlink shutdown
Jason A. Donenfeld [Mon, 14 May 2018 01:38:06 +0000 (03:38 +0200)]
Optional logging even in background
Jason A. Donenfeld [Mon, 14 May 2018 01:29:21 +0000 (03:29 +0200)]
Fix dummy additions
Jason A. Donenfeld [Mon, 14 May 2018 01:00:40 +0000 (03:00 +0200)]
Look up route for every peer
Jason A. Donenfeld [Mon, 14 May 2018 00:14:33 +0000 (02:14 +0200)]
Ensure go routines can exit
Jason A. Donenfeld [Sun, 13 May 2018 22:37:22 +0000 (00:37 +0200)]
Send event on erroring kqueue
Jason A. Donenfeld [Sun, 13 May 2018 22:28:30 +0000 (00:28 +0200)]
Introduce rwcancel
Jason A. Donenfeld [Sun, 13 May 2018 21:27:28 +0000 (23:27 +0200)]
Prettier abbreviation
Jason A. Donenfeld [Sun, 13 May 2018 21:14:43 +0000 (23:14 +0200)]
More refactoring
Jason A. Donenfeld [Sun, 13 May 2018 17:50:58 +0000 (19:50 +0200)]
More odds and ends
Jason A. Donenfeld [Sun, 13 May 2018 17:35:11 +0000 (19:35 +0200)]
Fix up tests
Jason A. Donenfeld [Sun, 13 May 2018 17:33:41 +0000 (19:33 +0200)]
Odds and ends
Jason A. Donenfeld [Sun, 13 May 2018 16:42:06 +0000 (18:42 +0200)]
Cleanup ratelimiter