aboutsummaryrefslogtreecommitdiffstats
path: root/send.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix shutdown racesJason A. Donenfeld2018-09-241-7/+36
|
* More poolingJason A. Donenfeld2018-09-241-7/+27
|
* Fixup buffer freeingJason A. Donenfeld2018-09-221-3/+1
|
* send: more precise padding calculationJason A. Donenfeld2018-09-161-5/+7
|
* Change queueing drop order and fix memory leaksJason A. Donenfeld2018-09-161-22/+21
| | | | | | If the queues are full, we drop the present packet, which is better for network traffic flow. Also, we try to fix up the memory leaks with not putting buffers from our shared pool.
* send: use accessor function for buffer poolJason A. Donenfeld2018-09-161-1/+1
|
* global: fix up copyright headersJason A. Donenfeld2018-09-161-2/+1
|
* send: better debug message for failed data packetJason A. Donenfeld2018-07-161-1/+2
|
* Make successful tests silentFilippo Valsorda2018-05-211-2/+4
| | | | | License: MIT Signed-off-by: Filippo Valsorda <valsorda@google.com>
* Reasonable punctuation given the spacingJason A. Donenfeld2018-05-211-14/+14
|
* Fix data races in timersJason A. Donenfeld2018-05-201-1/+1
|
* Fix race in packetInNonceQueueIsAwaitingKeyJason A. Donenfeld2018-05-201-6/+6
|
* timers: clear send_keepalive timer on sending handshake responseJason A. Donenfeld2018-05-191-3/+5
| | | | | | | | 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-191-0/+1
|
* Finer-grained start-stop synchronizationJason A. Donenfeld2018-05-161-0/+3
|
* Do not send keepalive if closedJason A. Donenfeld2018-05-151-1/+1
|
* More refactoringJason A. Donenfeld2018-05-131-22/+84
|
* More odds and endsJason A. Donenfeld2018-05-131-3/+3
|
* Rework index hashtableJason A. Donenfeld2018-05-131-10/+10
|
* Rewrite timers and related state machinesJason A. Donenfeld2018-05-101-27/+107
|
* Merge branch 'master' of ssh://git.zx2c4.com/wireguard-goMathias Hall-Andersen2018-05-051-12/+3
|\
| * Reorder stopping messages so that logs are coherentJason A. Donenfeld2018-05-051-3/+3
| |
| * More robust solution to close deadlockJason A. Donenfeld2018-05-051-11/+1
| |
| * Fix infinite loop in exit routineJason A. Donenfeld2018-05-051-1/+2
| |
* | Removed remaining signals from peerMathias Hall-Andersen2018-05-051-4/+7
|/ | | | | | 1. Removed remaining signals from peer struct 2. Made needAnotherKeepalive local 3. Removed environment check from warning text (annoying when debugging)
* Removed old signalsMathias Hall-Andersen2018-05-051-4/+7
|
* Merge branch 'master' of ssh://git.zx2c4.com/wireguard-goMathias Hall-Andersen2018-05-051-0/+5
|\
| * global: Add SPDX tags and copyright headerJason A. Donenfeld2018-05-031-0/+5
| | | | | | | | Mathias should probably add his copyright headers to each file too.
* | Initial version of migration to new event modelMathias Hall-Andersen2018-05-051-12/+10
|/ | | | | - Begin move away from global timer state. - Made logging format more consistent
* Add missing locks and fix debug output, and try to flush queuesJason A. Donenfeld2018-05-011-14/+39
| | | | | | 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.
* Fixed read from closed channelMathias Hall-Andersen2018-04-181-3/+11
| | | | | | | A premature waitgroup .Done resulted in reading from closed channel. This caused a nil-pointer deref & crash. Added additional debugging when closing routines.
* Work on logging formatMathias Hall-Andersen2018-02-041-5/+9
|
* Align with go library layoutMathias Hall-Andersen2018-02-041-0/+362