summaryrefslogtreecommitdiffhomepage
path: root/timers.go
AgeCommit message (Collapse)Author
2019-03-03global: begin modularizationJason A. Donenfeld
2019-02-05Extend structs rather than embed, when possibleJason A. Donenfeld
2019-02-05Update copyrightJason A. Donenfeld
2018-12-19Make error messages consistentJason A. Donenfeld
2018-09-16global: fix up copyright headersJason A. Donenfeld
2018-05-27Fix typo in timersJason A. Donenfeld
2018-05-20Fix data races in timersJason A. Donenfeld
2018-05-20Fix race in lock pendingJason A. Donenfeld
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-15Lock timers on modificationJason A. Donenfeld
2018-05-13More refactoringJason A. Donenfeld
2018-05-13Rework index hashtableJason A. Donenfeld
2018-05-10Rewrite timers and related state machinesJason A. Donenfeld
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-05Use Int32n for jitterMathias Hall-Andersen
2018-05-05Removed old signalsMathias Hall-Andersen
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-03global: Add SPDX tags and copyright headerJason A. Donenfeld
Mathias should probably add his copyright headers to each file too.
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-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-18Use simple 16-bit integer for persistent keepaliveJason A. Donenfeld
Races for this aren't a huge problem.
2018-02-11TUN status hack was causing spam during shutdownMathias Hall-Andersen
2018-02-11Moved ratelimiter to internal packageMathias Hall-Andersen
2018-02-11Fixed tabsMathias Hall-Andersen
2018-02-04Work on logging formatMathias Hall-Andersen
2018-02-04Align with go library layoutMathias Hall-Andersen