5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-26 22:55:40 +00:00
yggdrasil-go/src
Neil Alexander 0c4c385885
Fix regression in Path MTU discovery
In the past we used to send back anything up to 900 bytes of the packet in the ICMPv6 Packet Too Big response, whereas now we seemingly only send back 40 bytes.

It turns out that sending back only the 40 bytes of IPv6 headers isn't enough for most operating systems to positively ID the flow to reduce the MTU. This PR updates it so that we can send up to 512 bytes instead (900 is probably excessive) — that should leave plenty of room for any number of IPv6 extension headers and the next protocol headers and some of the payload.

This seems to fix the problem in my testing.
2022-04-03 12:48:06 +01:00
..
address Add some tests (#828) 2021-11-04 08:05:53 +00:00
admin Restore uptime, bytes_sent and bytes_recvd to getPeers (#888) 2022-02-01 13:37:45 +00:00
config Add some tests (#828) 2021-11-04 08:05:53 +00:00
core Restore uptime, bytes_sent and bytes_recvd to getPeers (#888) 2022-02-01 13:37:45 +00:00
defaults gofmt to add new build comments 2021-09-23 04:34:58 -05:00
ipv6rwc Fix regression in Path MTU discovery 2022-04-03 12:48:06 +01:00
multicast Update CI to use Go 1.17, produce Apple Silicon builds (closes #844) 2021-09-28 11:02:15 +01:00
tuntap Merge pull request #842 from Arceliar/mutex 2021-09-24 04:43:44 -05:00
util Clean up util package 2021-06-05 20:55:08 +01:00
version yggdrasil: buildName should report unknown 2019-11-11 00:24:50 -05:00