Adam Ruzicka
|
8358fe5c5c
|
Unify MTU datatypes across the codebase
The codebase uses int and unit16 to represent MTU randomly. This change
unifies it to a MTU type from types package, which is currently uint16.
|
2020-01-05 18:01:22 +00:00 |
|
Arceliar
|
c2a8b4bb57
|
get rid of an allocation in tunWriter's _write
|
2019-11-28 12:00:00 -06:00 |
|
Arceliar
|
2e95a3131c
|
comment out pointless error that prints on some platforms and not others
|
2019-11-24 15:37:37 -06:00 |
|
Arceliar
|
2982b53555
|
make offset generic over TUN_OFFSET_BYTES so we can make this platform dependent
|
2019-11-24 15:09:28 -06:00 |
|
Arceliar
|
f6f9b3ef76
|
include offset in expected bytes written
|
2019-11-24 15:01:20 -06:00 |
|
Arceliar
|
6560aac1e9
|
fix error spam on shutdown
|
2019-11-24 13:42:56 -06:00 |
|
Neil Alexander
|
235b64345e
|
Configure addresses and MTUs, fix bugs
|
2019-11-22 18:34:43 +00:00 |
|
Neil Alexander
|
f5517acc81
|
Drop Water, use Wireguard tun library, drop TAP support
|
2019-11-22 16:43:50 +00:00 |
|
Arceliar
|
eccd9a348f
|
give yggdrasil.Dialer the same interface as a net.Dialer, so the only differences are what fields exist in the struct
|
2019-10-21 19:44:06 -05:00 |
|
Arceliar
|
0f99d590a1
|
typo, ipv6->ipv4
|
2019-09-26 18:15:26 -05:00 |
|
Arceliar
|
e16d3efb0a
|
check packet length before checking if it's an ipv6 packet, and add some trace level logging whenever a packet is rejected for being too short to parse
|
2019-09-26 18:11:58 -05:00 |
|
Neil Alexander
|
94cf2854a9
|
Fix panic where slice goes out of bounds because iface.Read returns less than zero (which might happen when the TUN/TAP interface is closed)
|
2019-09-18 19:48:53 +01:00 |
|
Arceliar
|
3845f81357
|
update to latest phony, adjust interface use accordingly
|
2019-08-27 19:43:54 -05:00 |
|
Arceliar
|
c97dd4ad28
|
fix dial bug
|
2019-08-26 00:38:14 -05:00 |
|
Arceliar
|
b2a2e251ad
|
more TunAdapter migration
|
2019-08-25 18:53:11 -05:00 |
|
Arceliar
|
aaf34c6304
|
start migrating the TunAdapter to the actor model
|
2019-08-25 18:08:43 -05:00 |
|
Arceliar
|
4893a07696
|
start migrating tunConn to the actor model
|
2019-08-24 11:38:47 -05:00 |
|
Arceliar
|
4156aa3003
|
move ckr checks into the tunConn code
|
2019-08-20 18:10:08 -05:00 |
|
Neil Alexander
|
b6e67bc0ba
|
Check CKR remotes when receiving traffic
|
2019-08-20 09:38:46 +01:00 |
|
Neil Alexander
|
2a629880fd
|
Rename crypto-key config options, improve control flow
|
2019-08-19 10:28:30 +01:00 |
|
Arceliar
|
75b931f37e
|
eliminate some more copying between slices
|
2019-08-04 14:50:19 -05:00 |
|
Arceliar
|
7bf5884ac1
|
remove some lossy channel sends that should be safe to allow to block
|
2019-08-04 02:14:45 -05:00 |
|
Arceliar
|
406e143f7f
|
move some logic from TunAdapter.reader into a new function, TunAdapter.readerPacketHandler
|
2019-07-28 23:33:04 -05:00 |
|
Arceliar
|
38e1503b28
|
split up some of the tun reader logic into a separate worker, so the main loop can be mostly just syscalls
|
2019-07-27 20:09:43 -05:00 |
|
Neil Alexander
|
48ad3c5d7f
|
Update water go.mod references, fix some bugs in TAP mode (which should hopefully fix Windows support too)
|
2019-07-20 16:13:54 +01:00 |
|
Neil Alexander
|
36201895e7
|
Don't mangle bs slice in TAP mode
|
2019-07-20 12:10:05 +01:00 |
|
Neil Alexander
|
a10c141896
|
Fix data race on peermacs
|
2019-07-06 15:15:43 +01:00 |
|
Neil Alexander
|
e8272926a4
|
Fix TAP mode
|
2019-07-06 15:08:17 +01:00 |
|
Neil Alexander
|
12486b0557
|
Try to more gracefully handle shutdowns on Windows
|
2019-07-06 11:52:30 +01:00 |
|
Arceliar
|
28db566b37
|
fix concurrency bug in iface.go
|
2019-06-29 18:44:24 -05:00 |
|
Arceliar
|
5df110ac79
|
make Dial block until the search finishes, and use it as such
|
2019-06-28 18:42:31 -05:00 |
|
Neil Alexander
|
71ccaf753e
|
Add crypto-key routing into TUN/TAP
|
2019-05-17 22:09:20 +01:00 |
|
Arceliar
|
522ed147b1
|
use the subnet derived ID/mask when creating a connection based on a subnet address, fix a potential blocking channel send in tuntap/conn.go, and get debug.go compiling well enough to profile things (the sim is currently still broken)
|
2019-05-15 18:01:26 -05:00 |
|
Arceliar
|
efdaea1b5e
|
fix some races and GetBytes/PutBytes usage, but this still seems to deadlock somewhere in iperf tests
|
2019-05-02 17:37:49 -05:00 |
|
Neil Alexander
|
5f66c4c95c
|
Try using separate workers for each TUN/TAP connection (sometimes produces duplicate packets when communicating with both the node address and a subnet address, sometimes also can't Ctrl-C to quit)
|
2019-04-28 17:14:09 +01:00 |
|