Commit Graph

786 Commits

Author SHA1 Message Date
Mathias Hall-Andersen
88801529fd Moved TUN device creation to pre-fork 2017-11-14 18:26:28 +01:00
Mathias Hall-Andersen
69fe86edf0 Initial working source caching 2017-11-14 16:27:53 +01:00
Mathias Hall-Andersen
566269275e Fixed blocking reader on closed socket 2017-11-11 23:26:44 +01:00
Mathias Hall-Andersen
892276aa64 Fixed port endianness 2017-11-11 15:43:55 +01:00
Aurélien Chabot
5705a5e2ef Close tun device with device 2017-11-11 12:27:24 +01:00
Mathias Hall-Andersen
0485c34c8e Fixed message header length in conn_linux 2017-10-27 10:43:37 +02:00
Mathias Hall-Andersen
fd6f2e1f55 Fixed timer issue when failing to send handshake
+ Identified send4 issue
2017-10-17 16:50:23 +02:00
Mathias Hall-Andersen
e86d03dca2 Initial implementation of source caching
Yet untested.
2017-10-16 21:33:47 +02:00
Mathias Hall-Andersen
a72b0f7ae5 Added new UDPBind interface 2017-10-08 22:03:32 +02:00
Mathias Hall-Andersen
2d856045a0 Begin incorporating new src cache into receive 2017-10-07 22:35:23 +02:00
Mathias Hall-Andersen
c70f0c5da2 Definition of platform specific socket bind 2017-10-06 22:56:01 +02:00
Jason A. Donenfeld
32d8932d1b Sleep to close fd 2017-09-26 15:24:18 +02:00
Jason A. Donenfeld
6fa65bded4 Clean up error handling of listen port 2017-09-26 15:15:27 +02:00
Jason A. Donenfeld
012e7b9d33 Simplified xplatform spec 2017-09-26 14:26:50 +02:00
Mathias Hall-Andersen
eefa47b0f9 Begin work on source address caching (linux) 2017-09-24 21:35:25 +02:00
Jason A. Donenfeld
c545d63bb9 Fix up fwmark handling 2017-09-21 03:10:03 +02:00
Mathias Hall-Andersen
47a21c8bb0 Added last_minute_handshake_guard
- 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
2017-09-20 09:26:08 +02:00
Mathias Hall-Andersen
f212795e51 Improved readability of send/receive code 2017-09-09 15:03:01 +02:00
Mathias Hall-Andersen
89d0045214 Fixed TUN interface implementation os OS X 2017-09-03 18:10:06 +02:00
Mathias Hall-Andersen
c24b883c01 Fixed KDF tests 2017-09-01 14:31:57 +02:00
Mathias Hall-Andersen
0294a5c0dd Improved handling of key-material 2017-09-01 14:21:53 +02:00
Mathias Hall-Andersen
239d582cb2 Renamed config.go to follow general naming pattern 2017-08-28 18:30:11 +02:00
Mathias Hall-Andersen
6f5ef153c3 Added code from windows branch 2017-08-27 15:41:00 +02:00
Mathias Hall-Andersen
eafa3df606 Added fwmark code 2017-08-25 14:53:23 +02:00
Mathias Hall-Andersen
4986cfe78b Add support for fwmark on linux 2017-08-22 17:22:45 +02:00
Mathias Hall-Andersen
c6d03ef17f Update MTU based on netlink messages (linux) 2017-08-22 14:57:32 +02:00
Mathias Hall-Andersen
04640eb629 Added missing IF index check 2017-08-17 12:58:18 +02:00
Mathias Hall-Andersen
24f9394f64 Detects interface status on linux 2017-08-17 00:25:39 +02:00
Mathias Hall-Andersen
754ed08bf4 Improved test script 2017-08-14 17:14:44 +02:00
Mathias Hall-Andersen
12e8db2066 Improved cookie/mac computation code 2017-08-14 17:09:25 +02:00
Mathias Hall-Andersen
a4eff12d7f Improved receive.go
- 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
2017-08-11 16:18:20 +02:00
Mathias Hall-Andersen
cba1d6585a Number of fixes in response to code review
This version cannot complete a handshake.
The program will panic upon receiving any message on the UDP socket.
2017-08-07 15:25:04 +02:00
Mathias Hall-Andersen
8c34c4cbb3 First set of code review patches 2017-08-04 16:15:53 +02:00
Mathias Hall-Andersen
22c83f4b8d Merge branch 'master' of git.zx2c4.com:wireguard-go 2017-08-02 15:32:12 +02:00
Mathias Hall-Andersen
a70c44a9f6 Create /var/run/wireguard if non-existent 2017-08-02 15:30:57 +02:00
Jason A. Donenfeld
0ade48cb82 Makefile: cleanup a bit and add cloc
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2017-08-01 17:09:34 +02:00
Mathias Hall-Andersen
91c1822473 Remove stale unix socket 2017-08-01 12:45:11 +02:00
Mathias Hall-Andersen
b03a6ab1b1 Close UAPI socket before exit 2017-08-01 12:15:20 +02:00
Mathias Hall-Andersen
d7a49b8b8c Verify source address 2017-07-31 22:26:55 +02:00
Mathias Hall-Andersen
1fb00e8045 Fixed shadowing bug 2017-07-27 23:51:07 +02:00
Mathias Hall-Andersen
92135131a7 Merge branch 'master' of git.zx2c4.com:wireguard-go 2017-07-27 23:46:01 +02:00
Mathias Hall-Andersen
fb3fa4f915 Improved timer code 2017-07-27 23:45:37 +02:00
Mathias Hall-Andersen
c3d9ae402d Close UDP connection when listen port changes 2017-07-23 16:21:08 +02:00
Mathias Hall-Andersen
2ed9dac3a5 Merge branch 'darwin' 2017-07-23 15:48:23 +02:00
Mathias Hall-Andersen
2a6dd2ed92 Fixed UAPI deadlock 2017-07-21 15:17:43 +02:00
Mathias Hall-Andersen
47f8a3d89a Moved remaining platform dependent UAPI code 2017-07-20 15:06:24 +02:00
Mathias Hall-Andersen
086d32186a 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
2017-07-19 13:12:25 +02:00
Mathias Hall-Andersen
18714fc4a4 Added last_handshake_time fields to UAPI 2017-07-18 15:22:56 +02:00
Mathias Hall-Andersen
bd6027a4d5 Fixed file descriptor leak on linux 2017-07-18 14:15:29 +02:00
Mathias Hall-Andersen
c5d7efc246 Fixed deadlock in index.go 2017-07-17 16:16:18 +02:00