Neil Alexander
|
d16505e417
|
Update CKR
|
2020-02-16 23:26:18 +00:00 |
|
Neil Alexander
|
63936c11b5
|
Update tuntap module, return pointers
|
2020-02-16 23:21:58 +00:00 |
|
Arceliar
|
7e64f54c1f
|
log some info about searches and reduce search traffic (especially when things dead-end)
|
2020-02-01 13:58:08 -06:00 |
|
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 |
|
Dimitris Apostolou
|
73f50af3b7
|
Fix typos
|
2019-11-29 11:45:02 +02: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
|
746fac6594
|
Fix go.mod/go.sum again and update DoAsSystem call
|
2019-11-23 13:56:48 +00:00 |
|
Neil Alexander
|
d0a307db97
|
Use Wireguard's DoAsSystem, fix build tags and go.mod/go.sum
|
2019-11-23 13:46:05 +00:00 |
|
Neil Alexander
|
0529910b01
|
Reuse GUID so Windows no longer keeps creating new networks each time Yggdrasil starts
|
2019-11-23 13:34:27 +00:00 |
|
Neil Alexander
|
baebaabc43
|
Fix typo
|
2019-11-22 20:16:24 +00:00 |
|
Neil Alexander
|
3a0870a448
|
Fix IfName 'auto' behaviour on Windows
|
2019-11-22 20:11:39 +00:00 |
|
Neil Alexander
|
7d00206f4b
|
Update platform defaults, handling of 'auto' on Linux/Darwin
|
2019-11-22 20:07:08 +00:00 |
|
Neil Alexander
|
b27ada9191
|
Fix bad Name() calls
|
2019-11-22 18:39:27 +00: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 |
|
Neil Alexander
|
7c18c6806d
|
Further updates, notify sessions about updated MTU from API call
|
2019-11-21 09:54:36 +00:00 |
|
Neil Alexander
|
e90be6f569
|
Add API functions for manipulating maximum session MTU, fix TUN/TAP to use that
|
2019-11-21 00:02:39 +00:00 |
|
Neil Alexander
|
d06c40ad19
|
Use existing constant
|
2019-11-20 22:40:48 +00:00 |
|
Neil Alexander
|
9fca3640f9
|
Fix couple of issues with MTU calculations
|
2019-11-20 22:11:52 +00:00 |
|
Neil Alexander
|
f49d9de421
|
Fix setting up of MTU when value is outside of acceptable bounds, also account for ethernet headers in calculations, notify about clipping to stdout
|
2019-11-19 14:20:11 +00:00 |
|
Neil Alexander
|
cd93969930
|
Fix isOpen for TUN/TAP actor
|
2019-10-24 23:37:39 +01:00 |
|
Neil Alexander
|
a072e063d8
|
Define module.Module interface, update admin/tuntap/multicast modules to comply with it, fix #581
|
2019-10-23 10:44:58 +01: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
|
efc0b9ef9f
|
Merge branch 'develop' into netconn
|
2019-10-21 18:47:40 -05:00 |
|
Arceliar
|
a81476f489
|
fix incorrectly held mutex in ckr getPublicKeyForAddress
|
2019-10-20 20:00:55 -05:00 |
|
Arceliar
|
cb40874f97
|
have listener return a net.Conn, adjust yggdrasil.Conn to match this interface
|
2019-10-19 15:10:28 -05:00 |
|
Arceliar
|
b2922189b8
|
fix deadlock from use of phony.Block by actors when ckr is enabled
|
2019-10-03 18:44:47 -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
|
8d2c31d39c
|
add some artifical delay to windows netsh commands, since it seems like maybe they don't take effect immediately, and this was leading to races when setting MTU
|
2019-09-01 13:20:48 -05:00 |
|
Arceliar
|
c53831696b
|
make tun stop check that iface is not nil, in case it wasn't set for some reason (windows bugs)
|
2019-09-01 13:06:25 -05:00 |
|
Neil Alexander
|
fc9a1c6c31
|
Simplify reconfiguration
|
2019-08-28 19:31:04 +01:00 |
|
Neil Alexander
|
5d7d84f827
|
Remove router.doAdmin and switchTable.doAdmin
|
2019-08-28 12:17:19 +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
|
502f2937a9
|
a couple race fixes and use timer.AfterFunc instead of sleeping goroutines or ticker in a few places
|
2019-08-25 17:00:02 -05:00 |
|
Arceliar
|
aa30c6cc98
|
upgrade phony dependency and switch to its new interface
|
2019-08-25 10:36:09 -05:00 |
|
Arceliar
|
ef15a6bd79
|
tunConn cleanup
|
2019-08-24 11:44:21 -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
|
2b6462c8a9
|
Strict checking of Yggdrasil source/destination addresses
|
2019-08-20 09:38:27 +01:00 |
|
Neil Alexander
|
2a629880fd
|
Rename crypto-key config options, improve control flow
|
2019-08-19 10:28:30 +01:00 |
|