Commit Graph

451 Commits

Author SHA1 Message Date
Jason A. Donenfeld
7a1a537f43 Mask IPs when showing from trie
Otherwise intermediate nodes that get collapsed to real nodes will
display the wrong value.
2018-05-14 17:57:58 +02:00
Jason A. Donenfeld
a62c770a99 Ugly hack to suppress warning on backgrounded process 2018-05-14 16:01:58 +02:00
Jason A. Donenfeld
09235d48d8 Better common bits function 2018-05-14 15:49:20 +02:00
Jason A. Donenfeld
7f1c9d1cc2 Fix noise test 2018-05-14 14:47:31 +02:00
Jason A. Donenfeld
021724a535 Cancelable netlink writes and better response correlation 2018-05-14 14:18:26 +02:00
Jason A. Donenfeld
795f76cffa Netlink sockets can't be shutdown 2018-05-14 14:08:03 +02:00
Jason A. Donenfeld
2dfd4e7d8c Cleanup socket file 2018-05-14 13:05:37 +02:00
Jason A. Donenfeld
355e9bd619 Clean more 2018-05-14 12:27:29 +02:00
Jason A. Donenfeld
8b30278ce6 No more finalizer for rwcancel 2018-05-14 06:10:08 +02:00
Jason A. Donenfeld
17262dfd62 No need for padding any more 2018-05-14 04:36:20 +02:00
Jason A. Donenfeld
25df2e6942 Shorthand for empty channels 2018-05-14 04:19:25 +02:00
Jason A. Donenfeld
b76ab82539 Allow go routine to shutdown in darwin tun 2018-05-14 04:14:57 +02:00
Jason A. Donenfeld
5f5503afa8 Add rwcancelation to darwin 2018-05-14 04:02:59 +02:00
Jason A. Donenfeld
f738c45a68 Smoother netlink shutdown 2018-05-14 03:44:57 +02:00
Jason A. Donenfeld
c1e097d6d0 Optional logging even in background 2018-05-14 03:38:06 +02:00
Jason A. Donenfeld
e75d2d4496 Fix dummy additions 2018-05-14 03:29:21 +02:00
Jason A. Donenfeld
0fb14232fa Look up route for every peer 2018-05-14 03:26:38 +02:00
Jason A. Donenfeld
659106bd6d Ensure go routines can exit 2018-05-14 02:14:33 +02:00
Jason A. Donenfeld
29b0453cf1 Send event on erroring kqueue 2018-05-14 00:48:59 +02:00
Jason A. Donenfeld
7e10ebe101 Introduce rwcancel 2018-05-14 00:30:52 +02:00
Jason A. Donenfeld
e21ea58db3 Prettier abbreviation 2018-05-13 23:27:28 +02:00
Jason A. Donenfeld
b56af1829d More refactoring 2018-05-13 23:20:13 +02:00
Jason A. Donenfeld
729773fdf3 More odds and ends 2018-05-13 19:52:13 +02:00
Jason A. Donenfeld
680a57faae Fix up tests 2018-05-13 19:35:11 +02:00
Jason A. Donenfeld
2326d6a4d7 Odds and ends 2018-05-13 19:34:28 +02:00
Jason A. Donenfeld
e94185681f Cleanup ratelimiter 2018-05-13 18:42:06 +02:00
Jason A. Donenfeld
2c27ab205c Rework index hashtable 2018-05-13 18:26:09 +02:00
Jason A. Donenfeld
233f079a94 Rewrite timers and related state machines 2018-05-10 16:08:03 +02:00
Mathias Hall-Andersen
375dcbd4ae Merge branch 'master' of ssh://git.zx2c4.com/wireguard-go 2018-05-05 22:10:22 +02:00
Mathias Hall-Andersen
abe2651ad5 Removed remaining signals from peer
1. Removed remaining signals from peer struct
2. Made needAnotherKeepalive local
3. Removed environment check from warning text (annoying when debugging)
2018-05-05 22:07:58 +02:00
Jason A. Donenfeld
c29428b075 Reorder stopping messages so that logs are coherent 2018-05-05 06:09:30 +02:00
Jason A. Donenfeld
a46401bbb1 More robust solution to close deadlock 2018-05-05 06:00:38 +02:00
Jason A. Donenfeld
09a9bc2899 Fix infinite loop in exit routine 2018-05-05 05:33:29 +02:00
Mathias Hall-Andersen
34891d92cd Merge branch 'master' of ssh://git.zx2c4.com/wireguard-go 2018-05-05 04:42:44 +02:00
Mathias Hall-Andersen
8ba28be732 Use Int32n for jitter 2018-05-05 04:42:17 +02:00
Jason A. Donenfeld
beab52258a Merge branch 'master' of ssh://git.zx2c4.com/wireguard-go 2018-05-05 04:20:16 +02:00
Mathias Hall-Andersen
d8d592787d Merge branch 'master' of ssh://git.zx2c4.com/wireguard-go 2018-05-05 04:15:41 +02:00
Mathias Hall-Andersen
7a83f2565a Removed old signals 2018-05-05 04:15:07 +02:00
Jason A. Donenfeld
36659454ce tun: simplify and combine creation logic on Linux 2018-05-05 03:40:52 +02:00
Jason A. Donenfeld
142e53f698 Style 2018-05-05 02:48:21 +02:00
Mathias Hall-Andersen
4d9f3a2f53 Merge branch 'master' of ssh://git.zx2c4.com/wireguard-go 2018-05-05 02:47:59 +02:00
Jason A. Donenfeld
4a177de09c tun: account for null termination on Linux 2018-05-05 02:47:35 +02:00
Mathias Hall-Andersen
edbce6b400 Merge branch 'master' of ssh://git.zx2c4.com/wireguard-go 2018-05-05 02:23:03 +02:00
Mathias Hall-Andersen
6db41d5a26 Initial version of migration to new event model
- Begin move away from global timer state.
- Made logging format more consistent
2018-05-05 02:20:52 +02:00
Jason A. Donenfeld
e1de0f229a uapi: use kqueue for sock deletion on darwin 2018-05-04 21:51:55 +02:00
Jason A. Donenfeld
ac898bb35a tun: print automatically assigned interface name to stdout
This way scripts know what process they just started.
2018-05-04 21:20:19 +02:00
Jason A. Donenfeld
de7ecc571b tun: allow darwin to auto assign names 2018-05-04 21:11:51 +02:00
Jason A. Donenfeld
0f322f83f5 warning: put into main 2018-05-04 19:50:08 +02:00
Jason A. Donenfeld
a040786645 global: Add SPDX tags and copyright header
Mathias should probably add his copyright headers to each file too.
2018-05-03 15:06:25 +02:00
Jason A. Donenfeld
209dd22ea0 Daemonize with environment variable 2018-05-03 14:55:10 +02:00