summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-05-24version: bump snapshot0.0.20180524Jason A. Donenfeld
2018-05-24Add undocumented --version flagJason A. Donenfeld
2018-05-23Eye before ee except after seeJason A. Donenfeld
2018-05-23No zero sequence numbersJason A. Donenfeld
2018-05-23Don't cause a new fake gopath to call depJason A. Donenfeld
2018-05-23Infoleak ifnames and be more permissiveJason A. Donenfeld
Listing interfaces is already permitted by the OS, so we allow this info leak too.
2018-05-23Adopt GOPATHJason A. Donenfeld
GOPATH is annoying, but the Go community pushing me to adopt it is even more annoying.
2018-05-23Remove more windows cruftJason A. Donenfeld
2018-05-23CleanupJason A. Donenfeld
2018-05-23Move replay into subpackageJason A. Donenfeld
2018-05-23Move tun to subpackageJason A. Donenfeld
2018-05-22Avoid sticky sockets on AndroidJason A. Donenfeld
The android policy routing system does insane things.
2018-05-22Fix integer conversionsJason A. Donenfeld
2018-05-22Bump dependencies for OpenBSDJason A. Donenfeld
2018-05-22Fix markdownJason A. Donenfeld
2018-05-22Add OpenBSD tun driver supportJason A. Donenfeld
2018-05-22Fix code duplicationJason A. Donenfeld
2018-05-22Notes on FreeBSD limitationsJason A. Donenfeld
2018-05-22Just in case darwin changes, we also shutdownJason A. Donenfeld
2018-05-22Call shutdown on route socket on freebsdJason A. Donenfeld
2018-05-21Minor main.go signal fixesFilippo Valsorda
* 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>
2018-05-21Fix Sscanf use in tun_darwinFilippo Valsorda
License: MIT Signed-off-by: Filippo Valsorda <valsorda@google.com>
2018-05-21Make successful tests silentFilippo Valsorda
License: MIT Signed-off-by: Filippo Valsorda <valsorda@google.com>
2018-05-21Properly close DummyTUN to avoid deadlock in TestNoiseHandshakeFilippo Valsorda
License: MIT Signed-off-by: Filippo Valsorda <valsorda@google.com>
2018-05-21User cookie is closer to fwmark than setfibJason A. Donenfeld
2018-05-21Remove broken windows cruftJason A. Donenfeld
2018-05-21Rework freebsd supportJason A. Donenfeld
2018-05-21Add FreeBSD supportBrady OBrien
Signed-off-by: Brady OBrien <brady.obrien128@gmail.com>
2018-05-21Close events channel when no status listenerJason A. Donenfeld
2018-05-21Straighten out UAPI loggingJason A. Donenfeld
2018-05-21Close hack listener before closing channelJason A. Donenfeld
2018-05-21ratelimiter: do not run GC with nothing to doJason A. Donenfeld
2018-05-21Reasonable punctuation given the spacingJason A. Donenfeld
2018-05-20Fix data races in timersJason A. Donenfeld
2018-05-20Fix race with closing event channelJason A. Donenfeld
There's still a tiny race on Linux, since the tun channel is written to from two places.
2018-05-20StyleJason A. Donenfeld
2018-05-20Remove unused mtu variableJason A. Donenfeld
2018-05-20Give bind its own wait groupJason A. Donenfeld
In a waitgroup, all waits must come after all adds
2018-05-20Avoid deadlock when the mutex isn't required, since these are atomicsJason A. Donenfeld
Maybe this fixes the "double lock issue" in f73d2fb2d96bc3fbc8bc4cce452e3c19689de01e?
2018-05-20Use proper status listener on DarwinJason A. Donenfeld
2018-05-20Reduce the hack listener to once a secondJason A. Donenfeld
2018-05-20Fix race in netlink peer correlatorJason A. Donenfeld
2018-05-20Fix race in lock pendingJason A. Donenfeld
2018-05-20Fix race in statsJason A. Donenfeld
2018-05-20Fix race in packetInNonceQueueIsAwaitingKeyJason A. Donenfeld
2018-05-20Discourage building for LinuxJason A. Donenfeld
2018-05-19Revert "Temporary work around. Please revert me"0.0.20180519Jason A. Donenfeld
This reverts commit 4312a7c70a58656891ff1398f2d0d36f4ed74c8a.
2018-05-19timers: no need to clear keepalive in persistent keepaliveJason A. Donenfeld
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
2018-05-19timers: clear send_keepalive timer on sending handshake responseJason A. Donenfeld
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
2018-05-19Listen for flush in outer selectMathias Hall-Andersen
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.