Commit Graph

28 Commits

Author SHA1 Message Date
Jason A. Donenfeld
034a1a12f7 Supply missing pieces of path change
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-12 01:11:43 +01:00
Jason A. Donenfeld
63e67a5e13 Revert pure-go network monitoring and add wgSetConfig
This reverts commit 99f0e457c3 and adds a
function too.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-11 22:25:54 +01:00
Jason A. Donenfeld
ddccd6da4c wireguard-go-bridge: account for network changes
Everytime the network changes, we need to recreate the UDP socket,
because the ephemeral listen port is tied to the old physical interface.
As well, we need to re-set the IP addresses for each endpoint, so that
they're passed to getaddrinfo and are then resolved using DNS46.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-07 21:50:19 +01:00
Jason A. Donenfeld
0a55a284d5 wireguard-go-bridge: take fd instead of fnptr
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-11-06 16:27:25 +01:00
Jason A. Donenfeld
03cce06292 wireguard-go-bridge: work around DWARF generation issue
Golang bug 25148 upstream.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-11-05 04:47:11 +01:00
Jason A. Donenfeld
fe76d6eed9 wireguard-go-bridge: xcode expects install target
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-11-04 03:56:15 +01:00
Jason A. Donenfeld
6676e557f1 wireguard-go-bridge: use boottime instead of monotonic
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-11-01 23:39:06 +01:00
Jason A. Donenfeld
9f5612f93f wireguard-go-bridge: extract version for consumption by network extension
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-31 04:08:13 +01:00
Jason A. Donenfeld
2a9c7e4745 wireguard-go-bridge: simplify logging and remove tags
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-31 03:22:22 +01:00
Jason A. Donenfeld
3ed88cd858 wireguard-go-bridge: handle errors in makefile
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-31 02:49:59 +01:00
Jason A. Donenfeld
95fefbdb39 Allow customizing MTU
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-27 01:03:28 +02:00
Jason A. Donenfeld
e1ebe64a47 bridge: go get requires arch paths
So we move it into the build phase. This makes sense, since ostensibly
different archs might have different required modules.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-26 22:40:07 +02:00
Jason A. Donenfeld
add2b2c09c Use go modules
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-09 19:51:53 +02:00
Jason A. Donenfeld
cd86ba92ec Rewrite bridge build system
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-02 19:15:03 +02:00
Jeroen Leenarts
f118f9ef4b Add missing file and fix hard path.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-27 07:57:42 +02:00
Jeroen Leenarts
5c853efed8 Xcode build wireguard go bridge.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-26 20:34:09 +02:00
Jason A. Donenfeld
412a5ed445 Keep tabs on memory usage
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-25 02:50:03 +02:00
Jason A. Donenfeld
2ccbe0eb42 Update go submodule
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-24 01:53:35 +02:00
Jason A. Donenfeld
f16260db25 Preallocate buffers so we don't explode limit
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-17 00:40:09 +02:00
Jeroen Leenarts
1379d97bbe Switch copyright assignment from Jason to WireGuard LLC.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-06 07:42:23 +02:00
Jason A. Donenfeld
721202c65b wireguard-go-bridge: include header for free function
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-31 10:29:27 -06:00
Jeroen Leenarts
2e9a12c63f Initial merge of rc's work.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-27 22:32:47 +02:00
Jason A. Donenfeld
388e652315 wireguard-go-bridge: free C strings
Reported-by: Anders Bergh <anders1@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-26 21:11:39 -06:00
Jeroen Leenarts
efe177605e Finish trampoline code.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-03 22:24:41 +02:00
Jason A. Donenfeld
17529b300b Generate fat archive
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-06-13 02:30:12 +02:00
Jason A. Donenfeld
b861590195 Correct archive file extension
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-06-13 00:35:15 +02:00
Jason A. Donenfeld
2ec6a90044 Build using c-archive instead
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-06-12 05:19:21 +02:00
Jason A. Donenfeld
831640312c First stab at Go bridge
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-06-09 04:22:11 +02:00