aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add undocumented --version flagJason A. Donenfeld2018-05-243-2/+17
|
* Eye before ee except after seeJason A. Donenfeld2018-05-231-1/+1
|
* No zero sequence numbersJason A. Donenfeld2018-05-231-1/+1
|
* Don't cause a new fake gopath to call depJason A. Donenfeld2018-05-231-2/+2
|
* Infoleak ifnames and be more permissiveJason A. Donenfeld2018-05-232-2/+6
| | | | | Listing interfaces is already permitted by the OS, so we allow this info leak too.
* Adopt GOPATHJason A. Donenfeld2018-05-2319-44/+88
| | | | | GOPATH is annoying, but the Go community pushing me to adopt it is even more annoying.
* Remove more windows cruftJason A. Donenfeld2018-05-231-6/+0
|
* CleanupJason A. Donenfeld2018-05-231-2/+0
|
* Move replay into subpackageJason A. Donenfeld2018-05-235-16/+17
|
* Move tun to subpackageJason A. Donenfeld2018-05-239-131/+127
|
* Avoid sticky sockets on AndroidJason A. Donenfeld2018-05-222-3/+8
| | | | The android policy routing system does insane things.
* Fix integer conversionsJason A. Donenfeld2018-05-225-29/+8
|
* Bump dependencies for OpenBSDJason A. Donenfeld2018-05-221-2/+2
|
* Fix markdownJason A. Donenfeld2018-05-221-2/+2
|
* Add OpenBSD tun driver supportJason A. Donenfeld2018-05-226-36/+411
|
* Fix code duplicationJason A. Donenfeld2018-05-221-5/+0
|
* Notes on FreeBSD limitationsJason A. Donenfeld2018-05-221-1/+1
|
* Just in case darwin changes, we also shutdownJason A. Donenfeld2018-05-221-2/+1
|
* Call shutdown on route socket on freebsdJason A. Donenfeld2018-05-221-2/+1
|
* Minor main.go signal fixesFilippo Valsorda2018-05-211-2/+3
| | | | | | | | * 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>
* Fix Sscanf use in tun_darwinFilippo Valsorda2018-05-211-2/+2
| | | | | License: MIT Signed-off-by: Filippo Valsorda <valsorda@google.com>
* Make successful tests silentFilippo Valsorda2018-05-212-6/+8
| | | | | License: MIT Signed-off-by: Filippo Valsorda <valsorda@google.com>
* Properly close DummyTUN to avoid deadlock in TestNoiseHandshakeFilippo Valsorda2018-05-213-1/+12
| | | | | License: MIT Signed-off-by: Filippo Valsorda <valsorda@google.com>
* User cookie is closer to fwmark than setfibJason A. Donenfeld2018-05-211-2/+2
|
* Remove broken windows cruftJason A. Donenfeld2018-05-212-533/+0
|
* Rework freebsd supportJason A. Donenfeld2018-05-2110-353/+182
|
* Add FreeBSD supportBrady OBrien2018-05-218-20/+792
| | | | Signed-off-by: Brady OBrien <brady.obrien128@gmail.com>
* Close events channel when no status listenerJason A. Donenfeld2018-05-212-3/+10
|
* Straighten out UAPI loggingJason A. Donenfeld2018-05-211-17/+17
|
* Close hack listener before closing channelJason A. Donenfeld2018-05-211-10/+14
|
* ratelimiter: do not run GC with nothing to doJason A. Donenfeld2018-05-211-8/+23
|
* Reasonable punctuation given the spacingJason A. Donenfeld2018-05-213-22/+22
|
* Fix data races in timersJason A. Donenfeld2018-05-204-17/+17
|
* Fix race with closing event channelJason A. Donenfeld2018-05-202-3/+6
| | | | | There's still a tiny race on Linux, since the tun channel is written to from two places.
* StyleJason A. Donenfeld2018-05-202-5/+4
|
* Remove unused mtu variableJason A. Donenfeld2018-05-201-2/+0
|
* Give bind its own wait groupJason A. Donenfeld2018-05-203-4/+8
| | | | In a waitgroup, all waits must come after all adds
* Avoid deadlock when the mutex isn't required, since these are atomicsJason A. Donenfeld2018-05-201-4/+0
| | | | | Maybe this fixes the "double lock issue" in f73d2fb2d96bc3fbc8bc4cce452e3c19689de01e?
* Use proper status listener on DarwinJason A. Donenfeld2018-05-201-53/+92
|
* Reduce the hack listener to once a secondJason A. Donenfeld2018-05-201-1/+1
|
* Fix race in netlink peer correlatorJason A. Donenfeld2018-05-201-0/+9
|
* Fix race in lock pendingJason A. Donenfeld2018-05-201-4/+10
|
* Fix race in statsJason A. Donenfeld2018-05-201-2/+2
|
* Fix race in packetInNonceQueueIsAwaitingKeyJason A. Donenfeld2018-05-202-7/+7
|
* Discourage building for LinuxJason A. Donenfeld2018-05-201-0/+6
|
* Revert "Temporary work around. Please revert me"0.0.20180519Jason A. Donenfeld2018-05-191-2/+0
| | | | This reverts commit 4312a7c70a58656891ff1398f2d0d36f4ed74c8a.
* timers: no need to clear keepalive in persistent keepaliveJason A. Donenfeld2018-05-191-3/+0
| | | | | | | | | | 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
* timers: clear send_keepalive timer on sending handshake responseJason A. Donenfeld2018-05-192-10/+14
| | | | | | | | 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
* Listen for flush in outer selectMathias Hall-Andersen2018-05-191-8/+30
| | | | | | | | 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.
* Add copyright headersMathias Hall-Andersen2018-05-1938-0/+38
|