summaryrefslogtreecommitdiff
path: root/src/receive.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Align with go library layoutMathias Hall-Andersen2018-02-041-642/+0
|
* Rework of entire locking systemMathias Hall-Andersen2018-02-021-5/+9
| | | | | | Locking on the Device instance is now much more fined-grained, seperating out the fields into "resources" st. most common interactions only require a small number.
* Added initial version of peer teardownMathias Hall-Andersen2018-01-261-6/+15
| | | | | There is a double lock issue with device.Close which has yet to be resolved.
* Fixed potential DoS issueMathias Hall-Andersen2018-01-161-3/+3
|
* Work on timer teardown + bug fixesMathias Hall-Andersen2018-01-131-1/+1
| | | | | Added waitgroups to peer struct for routine start / stop synchronisation
* Removed IFF_NO_PI from TUN linuxMathias Hall-Andersen2017-12-041-3/+18
| | | | | | | | This change was needed for the Linux TUN status hack to work properly (not increment the error counter). This commit also updates the TUN interface to allow for the construction / removal of the TUN info headers in-place.
* More consistent use of signal structMathias Hall-Andersen2017-12-011-8/+14
|
* Fixed receive path infinite loopMathias Hall-Andersen2017-12-011-84/+81
|
* Refactor timers.goMathias Hall-Andersen2017-11-301-1/+2
|
* Added cross namespace TUN status detectionMathias Hall-Andersen2017-11-291-2/+2
|
* Moved endpoint into interface and simplified peerMathias Hall-Andersen2017-11-181-17/+12
|
* Ported remaining netns.shMathias Hall-Andersen2017-11-171-8/+19
| | | | | - Ported remaining netns.sh tests - Begin work on generic implementation of bind interface
* Initial working source cachingMathias Hall-Andersen2017-11-141-28/+33
|
* Fixed blocking reader on closed socketMathias Hall-Andersen2017-11-111-6/+7
|
* Fixed port endiannessMathias Hall-Andersen2017-11-111-98/+89
|
* Initial implementation of source cachingMathias Hall-Andersen2017-10-161-10/+8
| | | | Yet untested.
* Added new UDPBind interfaceMathias Hall-Andersen2017-10-081-30/+27
|
* Begin incorporating new src cache into receiveMathias Hall-Andersen2017-10-071-17/+36
|
* Added last_minute_handshake_guardMathias Hall-Andersen2017-09-201-19/+11
| | | | | | | - Added last_minute_handshake_guard and reverted keypair changes. - Added comment explaining the state of Go in releation to handling cryptographic state in memory. - Decreased logging level of netsh test
* Improved readability of send/receive codeMathias Hall-Andersen2017-09-091-114/+115
|
* Improved handling of key-materialMathias Hall-Andersen2017-09-011-7/+17
|
* Added fwmark codeMathias Hall-Andersen2017-08-251-3/+22
|
* Improved cookie/mac computation codeMathias Hall-Andersen2017-08-141-3/+19
|
* Improved receive.goMathias Hall-Andersen2017-08-111-118/+87
| | | | | | | | | | | - Fixed configuration listen-port semantics - Improved receive.go code for updating listen port - Updated under load detection, how follows the kernel space implementation - Fixed trie bug accidentally introduced in last commit - Added interface name to log (format still subject to change) - Can now configure the logging level using the LOG_LEVEL variable - Begin porting netsh.sh tests - A number of smaller changes
* Number of fixes in response to code reviewMathias Hall-Andersen2017-08-071-257/+250
| | | | | This version cannot complete a handshake. The program will panic upon receiving any message on the UDP socket.
* First set of code review patchesMathias Hall-Andersen2017-08-041-9/+35
|
* Verify source addressMathias Hall-Andersen2017-07-311-4/+4
|
* Improved timer codeMathias Hall-Andersen2017-07-271-18/+18
|
* Added last_handshake_time fields to UAPIMathias Hall-Andersen2017-07-181-1/+1
|
* Fixed deadlock in index.goMathias Hall-Andersen2017-07-171-4/+4
|
* Improved throughputMathias Hall-Andersen2017-07-141-22/+35
| | | | | | - Improved performance by adding the message buffers to a sync.Pool. - Fixed issue with computing "next" key-pair upon receiving a response message.
* Endpoint discovery from handshake initiationMathias Hall-Andersen2017-07-131-0/+6
|
* Terminate on interface deletionMathias Hall-Andersen2017-07-131-8/+16
| | | | | | | Program now terminates when the interface is removed Increases the number of os threads (relevant for Go <1.5, not tested) More consistent commenting Improved logging (additional peer information)
* Added ratelimiting of handshake messagesMathias Hall-Andersen2017-07-111-0/+4
|
* Fixed incomming initiation bugMathias Hall-Andersen2017-07-101-2/+4
|
* Added replay protectionMathias Hall-Andersen2017-07-101-0/+4
|
* Improved timer state machineMathias Hall-Andersen2017-07-081-17/+27
|
* Added source verificationMathias Hall-Andersen2017-07-081-36/+101
|
* Fixed cookie reply processing bugMathias Hall-Andersen2017-07-071-24/+82
|
* Initial working full exchangeMathias Hall-Andersen2017-07-061-79/+71
| | | | | | The implementation is now capable of connecting to another wireguard instance, complete a handshake and exchange transport messages.
* Fixed transport header problemMathias Hall-Andersen2017-07-021-2/+3
|
* Handshake negotiation functioningMathias Hall-Andersen2017-07-011-0/+404