moby / vpnkit

A toolkit for embedding VPN capabilities in your application
Apache License 2.0
1.09k stars 182 forks source link

switch: request a large enough buffer for the MTU #574

Closed djs55 closed 2 years ago

djs55 commented 2 years ago

Previously we used "sizeof_ethernet" which is the "size of the Ethernet header" (!) Most of the time the buffer is big enough anyway, but this explains the occasional Cstrict.blit errors in the log when a 14 byte buffer is used.

Signed-off-by: David Scott dave@recoil.org