summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2018-05-13Odds and endsJason A. Donenfeld
2018-05-13Cleanup ratelimiterJason A. Donenfeld
2018-05-13Rework index hashtableJason A. Donenfeld
2018-05-10Rewrite timers and related state machinesJason A. Donenfeld
2018-05-05Merge branch 'master' of ssh://git.zx2c4.com/wireguard-goMathias Hall-Andersen
2018-05-05Removed remaining signals from peerMathias Hall-Andersen
1. Removed remaining signals from peer struct 2. Made needAnotherKeepalive local 3. Removed environment check from warning text (annoying when debugging)
2018-05-05Reorder stopping messages so that logs are coherentJason A. Donenfeld
2018-05-05More robust solution to close deadlockJason A. Donenfeld
2018-05-05Fix infinite loop in exit routineJason A. Donenfeld
2018-05-05Merge branch 'master' of ssh://git.zx2c4.com/wireguard-goMathias Hall-Andersen
2018-05-05Use Int32n for jitterMathias Hall-Andersen
2018-05-05Merge branch 'master' of ssh://git.zx2c4.com/wireguard-goJason A. Donenfeld
2018-05-05Merge branch 'master' of ssh://git.zx2c4.com/wireguard-goMathias Hall-Andersen
2018-05-05Removed old signalsMathias Hall-Andersen
2018-05-05tun: simplify and combine creation logic on LinuxJason A. Donenfeld
2018-05-05StyleJason A. Donenfeld
2018-05-05Merge branch 'master' of ssh://git.zx2c4.com/wireguard-goMathias Hall-Andersen
2018-05-05tun: account for null termination on LinuxJason A. Donenfeld
2018-05-05Merge branch 'master' of ssh://git.zx2c4.com/wireguard-goMathias Hall-Andersen
2018-05-05Initial version of migration to new event modelMathias Hall-Andersen
- Begin move away from global timer state. - Made logging format more consistent
2018-05-04uapi: use kqueue for sock deletion on darwinJason A. Donenfeld
2018-05-04tun: print automatically assigned interface name to stdoutJason A. Donenfeld
This way scripts know what process they just started.
2018-05-04tun: allow darwin to auto assign namesJason A. Donenfeld
2018-05-04warning: put into mainJason A. Donenfeld
2018-05-03global: Add SPDX tags and copyright headerJason A. Donenfeld
Mathias should probably add his copyright headers to each file too.
2018-05-03Daemonize with environment variableJason A. Donenfeld
2018-05-03Start to dust off DarwinJason A. Donenfeld
2018-05-01Add missing locks and fix debug output, and try to flush queuesJason A. Donenfeld
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.
2018-04-27Clear src cache if route changes to new ifindexJason A. Donenfeld
2018-04-27Fix error handling and cleanup of netlink listenerJason A. Donenfeld
2018-04-20Fix wrong debug messagesJason A. Donenfeld
2018-04-20Rework sticky socketsJason A. Donenfeld
2018-04-20Check for correct first nibbleJason A. Donenfeld
The code before assumed that the flow label was always zero.
2018-04-20Signal using select and a pipe for bringing down TUN readerJason A. Donenfeld
Waiting on resolution of these to fix in better way: - https://github.com/golang/go/issues/22939 - https://github.com/golang/go/issues/24331
2018-04-19We can determine the interface name ourselvesJason A. Donenfeld
2018-04-19Do not hard code MTU defaultJason A. Donenfeld
2018-04-18Fixed read from closed channelMathias Hall-Andersen
A premature waitgroup .Done resulted in reading from closed channel. This caused a nil-pointer deref & crash. Added additional debugging when closing routines.
2018-04-18Allow determining nameJason A. Donenfeld
2018-04-18Use socketcall on x86Jason A. Donenfeld
2018-04-18Use simple 16-bit integer for persistent keepaliveJason A. Donenfeld
Races for this aren't a huge problem.
2018-04-18Align 64-bit atomicsJason A. Donenfeld
64-bit varibles that are accessed using the Go atomic functions must be 8-byte aligned on 32-bit platforms. Otherwise there are crashes.
2018-03-08Begin work on full device<->device unit-testMathias Hall-Andersen
To simulate a full interaction between two WireGuard instances without networking, using dummy instances of the interfaces
2018-02-28Support nopi modeJason A. Donenfeld
2018-02-18Close tun fd when bringing down tunnelJason A. Donenfeld
2018-02-18Fix timer typoJason A. Donenfeld
2018-02-18Seperated fwmark update code into functionMathias Hall-Andersen
2018-02-13MPLv2 for App StoreJason A. Donenfeld
2018-02-13Reimplemented bind_rtmgrp in pure GoDominik Süß
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>
2018-02-12Use relative importsJason A. Donenfeld
2018-02-12Revert "Don't use modules"Mathias Hall-Andersen
This reverts commit bffe99aeadae09abd02f2bd3184925af6b680535.