]> git.ipfire.org Git - thirdparty/wireguard-go.git/log
thirdparty/wireguard-go.git
8 years agoFirst set of code review patches
Mathias Hall-Andersen [Fri, 4 Aug 2017 14:15:53 +0000 (16:15 +0200)] 
First set of code review patches

8 years agoMerge branch 'master' of git.zx2c4.com:wireguard-go
Mathias Hall-Andersen [Wed, 2 Aug 2017 13:32:12 +0000 (15:32 +0200)] 
Merge branch 'master' of git.zx2c4.com:wireguard-go

8 years agoCreate /var/run/wireguard if non-existent
Mathias Hall-Andersen [Wed, 2 Aug 2017 13:30:57 +0000 (15:30 +0200)] 
Create /var/run/wireguard if non-existent

8 years agoMakefile: cleanup a bit and add cloc
Jason A. Donenfeld [Tue, 1 Aug 2017 12:41:32 +0000 (14:41 +0200)] 
Makefile: cleanup a bit and add cloc

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
8 years agoRemove stale unix socket
Mathias Hall-Andersen [Tue, 1 Aug 2017 10:45:11 +0000 (12:45 +0200)] 
Remove stale unix socket

8 years agoClose UAPI socket before exit
Mathias Hall-Andersen [Tue, 1 Aug 2017 10:14:38 +0000 (12:14 +0200)] 
Close UAPI socket before exit

8 years agoVerify source address
Mathias Hall-Andersen [Mon, 31 Jul 2017 20:26:55 +0000 (22:26 +0200)] 
Verify source address

8 years agoFixed shadowing bug
Mathias Hall-Andersen [Thu, 27 Jul 2017 21:51:07 +0000 (23:51 +0200)] 
Fixed shadowing bug

8 years agoMerge branch 'master' of git.zx2c4.com:wireguard-go
Mathias Hall-Andersen [Thu, 27 Jul 2017 21:46:01 +0000 (23:46 +0200)] 
Merge branch 'master' of git.zx2c4.com:wireguard-go

8 years agoImproved timer code
Mathias Hall-Andersen [Thu, 27 Jul 2017 21:45:37 +0000 (23:45 +0200)] 
Improved timer code

8 years agoClose UDP connection when listen port changes
Mathias Hall-Andersen [Sun, 23 Jul 2017 14:21:08 +0000 (16:21 +0200)] 
Close UDP connection when listen port changes

8 years agoMerge branch 'darwin'
Mathias Hall-Andersen [Sun, 23 Jul 2017 13:48:23 +0000 (15:48 +0200)] 
Merge branch 'darwin'

8 years agoFixed UAPI deadlock
Mathias Hall-Andersen [Fri, 21 Jul 2017 13:17:43 +0000 (15:17 +0200)] 
Fixed UAPI deadlock

8 years agoMoved remaining platform dependent UAPI code
Mathias Hall-Andersen [Thu, 20 Jul 2017 13:06:24 +0000 (15:06 +0200)] 
Moved remaining platform dependent UAPI code

8 years agoReviewed and added OSX patch
Mathias Hall-Andersen [Wed, 19 Jul 2017 11:12:25 +0000 (13:12 +0200)] 
Reviewed and added OSX patch

The patch was provided by:
Naveen Nathan <naveen@lastninja.net>

The following modifications to the patch was made:

- Added copyright notice
- Fixed file descriptor leak in .MTU() method
- Migrated to the new(er) golang.org/x/sys/unix package
- Removed non-functioning Daemonize method

8 years agoAdded last_handshake_time fields to UAPI
Mathias Hall-Andersen [Tue, 18 Jul 2017 13:22:56 +0000 (15:22 +0200)] 
Added last_handshake_time fields to UAPI

8 years agoFixed file descriptor leak on linux
Mathias Hall-Andersen [Tue, 18 Jul 2017 12:15:29 +0000 (14:15 +0200)] 
Fixed file descriptor leak on linux

8 years agoFixed deadlock in index.go
Mathias Hall-Andersen [Mon, 17 Jul 2017 14:16:18 +0000 (16:16 +0200)] 
Fixed deadlock in index.go

8 years agoAdded padding
Mathias Hall-Andersen [Sat, 15 Jul 2017 14:27:59 +0000 (16:27 +0200)] 
Added padding

Added plaintext padding and fixed default interface MTU

8 years agoConforming to the cross-platform UX
Mathias Hall-Andersen [Sat, 15 Jul 2017 11:41:02 +0000 (13:41 +0200)] 
Conforming to the cross-platform UX

The implementation now terminates when the unix socket is deleted.
Currently we are unable to use fsnotify (on linux),
since it does not notify on the deletion of open files.

The implementation can now daemonize (on linux)
or be kept in the foreground by providing the necessary flag.

8 years agoImproved throughput
Mathias Hall-Andersen [Fri, 14 Jul 2017 12:25:18 +0000 (14:25 +0200)] 
Improved throughput

- Improved performance by adding the message buffers to a sync.Pool.
- Fixed issue with computing "next" key-pair upon
  receiving a response message.

8 years agoEndpoint discovery from handshake initiation
Mathias Hall-Andersen [Thu, 13 Jul 2017 19:29:22 +0000 (21:29 +0200)] 
Endpoint discovery from handshake initiation

8 years agoTerminate on interface deletion
Mathias Hall-Andersen [Thu, 13 Jul 2017 12:32:40 +0000 (14:32 +0200)] 
Terminate on interface deletion

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)

8 years agoRestructured MAC/cookie calculation
Mathias Hall-Andersen [Wed, 12 Jul 2017 21:11:49 +0000 (23:11 +0200)] 
Restructured MAC/cookie calculation

Added copy-right headers accidentally removed

8 years agoFixed MTU method for linux TUN interface
Mathias Hall-Andersen [Tue, 11 Jul 2017 20:48:58 +0000 (22:48 +0200)] 
Fixed MTU method for linux TUN interface

Updated the TUN interface
Added the "MTU" method for the linux implementation of the TUN interface

8 years agoAdded ratelimiting of handshake messages
Mathias Hall-Andersen [Tue, 11 Jul 2017 16:48:29 +0000 (18:48 +0200)] 
Added ratelimiting of handshake messages

8 years agoFixed incomming initiation bug
Mathias Hall-Andersen [Mon, 10 Jul 2017 15:20:43 +0000 (17:20 +0200)] 
Fixed incomming initiation bug

8 years agoAdded replay protection
Mathias Hall-Andersen [Mon, 10 Jul 2017 10:09:19 +0000 (12:09 +0200)] 
Added replay protection

8 years agoImproved timer state machine
Mathias Hall-Andersen [Sat, 8 Jul 2017 21:51:26 +0000 (23:51 +0200)] 
Improved timer state machine

8 years agoAdded source verification
Mathias Hall-Andersen [Sat, 8 Jul 2017 07:23:10 +0000 (09:23 +0200)] 
Added source verification

8 years agoFixed cookie reply processing bug
Mathias Hall-Andersen [Fri, 7 Jul 2017 11:47:09 +0000 (13:47 +0200)] 
Fixed cookie reply processing bug

8 years agoFixed broken test
Mathias Hall-Andersen [Thu, 6 Jul 2017 14:24:24 +0000 (16:24 +0200)] 
Fixed broken test

8 years agoInitial working full exchange
Mathias Hall-Andersen [Thu, 6 Jul 2017 13:43:55 +0000 (15:43 +0200)] 
Initial working full exchange

The implementation is now capable of connecting to another
wireguard instance, complete a handshake and exchange transport
messages.

8 years agoFixed transport header problem
Mathias Hall-Andersen [Sun, 2 Jul 2017 13:28:38 +0000 (15:28 +0200)] 
Fixed transport header problem

8 years agoHandshake negotiation functioning
Mathias Hall-Andersen [Sat, 1 Jul 2017 21:29:22 +0000 (23:29 +0200)] 
Handshake negotiation functioning

8 years agoRemoved exponential backoff
Mathias Hall-Andersen [Fri, 30 Jun 2017 21:05:03 +0000 (23:05 +0200)] 
Removed exponential backoff

8 years agoCompleted initial version of outbound flow
Mathias Hall-Andersen [Fri, 30 Jun 2017 12:41:08 +0000 (14:41 +0200)] 
Completed initial version of outbound flow

8 years agoCompleted get/set configuration
Mathias Hall-Andersen [Thu, 29 Jun 2017 12:39:21 +0000 (14:39 +0200)] 
Completed get/set configuration

For debugging of "outbound flow"
Mostly, a few things still missing

8 years agoWork on UAPI
Mathias Hall-Andersen [Wed, 28 Jun 2017 21:45:45 +0000 (23:45 +0200)] 
Work on UAPI

Cross-platform API (get operation)
Handshake initiation creation process
Outbound packet flow
Fixes from code-review

8 years agoImplemented MAC1/2 calculation
Mathias Hall-Andersen [Tue, 27 Jun 2017 15:33:06 +0000 (17:33 +0200)] 
Implemented MAC1/2 calculation

8 years agoBegin implementation of outbound work queue
Mathias Hall-Andersen [Mon, 26 Jun 2017 20:07:29 +0000 (22:07 +0200)] 
Begin implementation of outbound work queue

8 years agoBegin work on outbound packet flow
Mathias Hall-Andersen [Mon, 26 Jun 2017 11:14:02 +0000 (13:14 +0200)] 
Begin work on outbound packet flow

8 years agoCompleted noise handshake
Mathias Hall-Andersen [Sat, 24 Jun 2017 20:03:52 +0000 (22:03 +0200)] 
Completed noise handshake

8 years agoRestructuring of noise impl.
Mathias Hall-Andersen [Sat, 24 Jun 2017 13:34:17 +0000 (15:34 +0200)] 
Restructuring of noise impl.

8 years agoFixed missing type
Mathias Hall-Andersen [Fri, 23 Jun 2017 11:45:32 +0000 (13:45 +0200)] 
Fixed missing type

8 years agoBeginning work noise handshake
Mathias Hall-Andersen [Fri, 23 Jun 2017 11:41:59 +0000 (13:41 +0200)] 
Beginning work noise handshake

8 years agoBeginning work on TUN interface
Mathias Hall-Andersen [Sun, 4 Jun 2017 19:48:15 +0000 (21:48 +0200)] 
Beginning work on TUN interface

And outbound routing

I am not entirely convinced the use of net.IP is a good idea,
since the internal representation of net.IP is a byte slice
and all constructor functions in "net" return 16 byte slices
(padded for IPv4), while the use in this project uses 4 byte slices.
Which may be confusing.

8 years agoTrie random test
Mathias Hall-Andersen [Fri, 2 Jun 2017 16:02:04 +0000 (18:02 +0200)] 
Trie random test

Test trie against naive implementation of prefix routing.

8 years agoAdded random test for trie
Mathias Hall-Andersen [Fri, 2 Jun 2017 15:58:46 +0000 (17:58 +0200)] 
Added random test for trie

8 years agoInital implementation of trie
Mathias Hall-Andersen [Thu, 1 Jun 2017 19:31:30 +0000 (21:31 +0200)] 
Inital implementation of trie

8 years agoMerge branch 'master' of git.zx2c4.com:wireguard-go
Mathias Hall-Andersen [Tue, 30 May 2017 20:37:46 +0000 (22:37 +0200)] 
Merge branch 'master' of git.zx2c4.com:wireguard-go

8 years agoBeginning work on UAPI and routing table
Mathias Hall-Andersen [Tue, 30 May 2017 20:36:49 +0000 (22:36 +0200)] 
Beginning work on UAPI and routing table

8 years agoREADME: rust -> go
Peter Wu [Tue, 30 May 2017 10:06:44 +0000 (12:06 +0200)] 
README: rust -> go

8 years agoInitial scaffolding
Jason A. Donenfeld [Mon, 29 May 2017 22:10:06 +0000 (00:10 +0200)] 
Initial scaffolding