Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Daemonize with environment variable | Jason A. Donenfeld | 2018-05-03 | 2 | -31/+19 |
| | |||||
* | Start to dust off Darwin | Jason A. Donenfeld | 2018-05-03 | 8 | -175/+202 |
| | |||||
* | Add missing locks and fix debug output, and try to flush queues | Jason A. Donenfeld | 2018-05-01 | 5 | -42/+116 |
| | | | | | | Flushing queues on exit is sort of a partial solution, but this could be better. Really what we want is for no more packets to be enqueued after isUp is set to false. | ||||
* | Clear src cache if route changes to new ifindex | Jason A. Donenfeld | 2018-04-27 | 2 | -14/+151 |
| | |||||
* | Fix error handling and cleanup of netlink listener | Jason A. Donenfeld | 2018-04-27 | 1 | -22/+29 |
| | |||||
* | Fix wrong debug messages | Jason A. Donenfeld | 2018-04-20 | 1 | -1/+3 |
| | |||||
* | Rework sticky sockets | Jason A. Donenfeld | 2018-04-20 | 3 | -269/+150 |
| | |||||
* | Check for correct first nibble | Jason A. Donenfeld | 2018-04-20 | 1 | -1/+1 |
| | | | | The code before assumed that the flow label was always zero. | ||||
* | Signal using select and a pipe for bringing down TUN reader | Jason A. Donenfeld | 2018-04-20 | 1 | -9/+104 |
| | | | | | | Waiting on resolution of these to fix in better way: - https://github.com/golang/go/issues/22939 - https://github.com/golang/go/issues/24331 | ||||
* | We can determine the interface name ourselves | Jason A. Donenfeld | 2018-04-19 | 2 | -4/+8 |
| | |||||
* | Do not hard code MTU default | Jason A. Donenfeld | 2018-04-19 | 1 | -2/+2 |
| | |||||
* | Fixed read from closed channel | Mathias Hall-Andersen | 2018-04-18 | 4 | -10/+26 |
| | | | | | | | A premature waitgroup .Done resulted in reading from closed channel. This caused a nil-pointer deref & crash. Added additional debugging when closing routines. | ||||
* | Allow determining name | Jason A. Donenfeld | 2018-04-18 | 3 | -7/+28 |
| | |||||
* | Use socketcall on x86 | Jason A. Donenfeld | 2018-04-18 | 3 | -44/+89 |
| | |||||
* | Use simple 16-bit integer for persistent keepalive | Jason A. Donenfeld | 2018-04-18 | 3 | -11/+8 |
| | | | | Races for this aren't a huge problem. | ||||
* | Align 64-bit atomics | Jason A. Donenfeld | 2018-04-18 | 2 | -2/+2 |
| | | | | | 64-bit varibles that are accessed using the Go atomic functions must be 8-byte aligned on 32-bit platforms. Otherwise there are crashes. | ||||
* | Begin work on full device<->device unit-test | Mathias Hall-Andersen | 2018-03-08 | 4 | -1/+142 |
| | | | | | To simulate a full interaction between two WireGuard instances without networking, using dummy instances of the interfaces | ||||
* | Support nopi mode | Jason A. Donenfeld | 2018-02-28 | 1 | -16/+27 |
| | |||||
* | Close tun fd when bringing down tunnel | Jason A. Donenfeld | 2018-02-18 | 1 | -1/+1 |
| | |||||
* | Fix timer typo | Jason A. Donenfeld | 2018-02-18 | 1 | -1/+1 |
| | |||||
* | Seperated fwmark update code into function | Mathias Hall-Andersen | 2018-02-18 | 2 | -9/+34 |
| | |||||
* | MPLv2 for App Store | Jason A. Donenfeld | 2018-02-13 | 1 | -1/+10 |
| | |||||
* | Reimplemented bind_rtmgrp in pure Go | Dominik Süß | 2018-02-13 | 1 | -40/+30 |
| | | | | | | | | | Getting rid of the Cgo dependency for listing on netlink. Ported original patch from "syscall" to "golang.org/x/sys/unix". Signed-off-by: Dominik Süß <dominik.suess@outlook.at> Co-Authored-By: Mathias Hall-Andersen <mathias@hall-andersen.dk> | ||||
* | Use relative imports | Jason A. Donenfeld | 2018-02-12 | 9 | -3/+3 |
| | |||||
* | Revert "Don't use modules" | Mathias Hall-Andersen | 2018-02-12 | 9 | -20/+23 |
| | | | | This reverts commit bffe99aeadae09abd02f2bd3184925af6b680535. | ||||
* | Don't use modules | Jason A. Donenfeld | 2018-02-12 | 9 | -23/+20 |
| | | | | | Feel free to revert this if you have a strong feeling about it. But so far as I can see, it adds a lot of complexity for basically no upsides. | ||||
* | Moved test-processes to background | Mathias Hall-Andersen | 2018-02-11 | 1 | -2/+2 |
| | |||||
* | TUN status hack was causing spam during shutdown | Mathias Hall-Andersen | 2018-02-11 | 4 | -36/+39 |
| | |||||
* | Added missing mutex acquisition | Mathias Hall-Andersen | 2018-02-11 | 1 | -0/+3 |
| | |||||
* | Removed exported methods from ratelimiter package | Mathias Hall-Andersen | 2018-02-11 | 2 | -42/+38 |
| | |||||
* | Moved ratelimiter to internal package | Mathias Hall-Andersen | 2018-02-11 | 6 | -24/+60 |
| | |||||
* | Moved tai64n into sub-package | Mathias Hall-Andersen | 2018-02-11 | 3 | -48/+47 |
| | |||||
* | Fixed tabs | Mathias Hall-Andersen | 2018-02-11 | 4 | -392/+392 |
| | |||||
* | Reverted event changes | Mathias Hall-Andersen | 2018-02-11 | 3 | -57/+18 |
| | | | | This feature was not needed for Android, upon further inspection. | ||||
* | Started migration to sub-packages | Mathias Hall-Andersen | 2018-02-09 | 6 | -29/+69 |
| | |||||
* | Go treats underscores specially | Jason A. Donenfeld | 2018-02-07 | 3 | -0/+0 |
| | | | | | In case there's ever a platform called helpers or protocol, we don't want to be doing this. | ||||
* | Work on logging format | Mathias Hall-Andersen | 2018-02-04 | 7 | -32/+51 |
| | |||||
* | Merge branch 'master' into timer-teardown | Mathias Hall-Andersen | 2018-02-04 | 0 | -0/+0 |
|\ | |||||
| * | Fixed fwmark update without device status change | Mathias Hall-Andersen | 2018-01-09 | 2 | -2/+9 |
| | | | | | | | | | | An update of the fwmark was missing, when the device was not bought up after the change. | ||||
| * | Revert "Peer timer teardown" | Mathias Hall-Andersen | 2018-01-04 | 7 | -163/+102 |
| | | | | | | | | | | | | | | This reverts commit d73f960aab86b9a12b0b7d18aa80ce1d4f130695. Problems with deadlocking arises due to orphaned packets in per-peer queues. Additional work on this issue continues in seperate branch. | ||||
* | | Removed debugging locks | Mathias Hall-Andersen | 2018-02-04 | 2 | -48/+39 |
| | | |||||
* | | Align with go library layout | Mathias Hall-Andersen | 2018-02-04 | 50 | -4/+4 |
| | | |||||
* | | Fixed tests | Mathias Hall-Andersen | 2018-02-02 | 3 | -22/+35 |
| | | |||||
* | | Clear cryptographic state when interface down | Mathias Hall-Andersen | 2018-02-02 | 5 | -41/+58 |
| | | | | | | | | | | Attempts to clear the cryptographic state for every peer when the device goes down. | ||||
* | | Rework of entire locking system | Mathias Hall-Andersen | 2018-02-02 | 10 | -224/+371 |
| | | | | | | | | | | | | Locking on the Device instance is now much more fined-grained, seperating out the fields into "resources" st. most common interactions only require a small number. | ||||
* | | Merge branch 'timer-teardown' of git.zx2c4.com:wireguard-go into timer-teardown | Mathias Hall-Andersen | 2018-02-01 | 6 | -66/+173 |
|\ \ | |||||
| * | | Added initial version of peer teardown | Mathias Hall-Andersen | 2018-01-26 | 6 | -66/+173 |
| | | | | | | | | | | | | | | | There is a double lock issue with device.Close which has yet to be resolved. | ||||
* | | | Added binary to .gitignore | Mathias Hall-Andersen | 2018-01-31 | 1 | -0/+1 |
|/ / | |||||
* | | Fixed potential DoS issue | Mathias Hall-Andersen | 2018-01-16 | 1 | -3/+3 |
| | | |||||
* | | Work on timer teardown + bug fixes | Mathias Hall-Andersen | 2018-01-13 | 8 | -47/+102 |
|/ | | | | | Added waitgroups to peer struct for routine start / stop synchronisation |