tun2proxy / rust-tun

TUN device creation and handling.
https://docs.rs/tun2/
44 stars 20 forks source link

Why windows platform MTU is always 65535? #82

Closed feifeigood closed 2 months ago

feifeigood commented 2 months ago

Using tun2 created Wintun Interface MTU is always 65535

image

However, the MTU of the official client is configurable 1591720404368_ pic

Why this crates MTU can't be set on the Windows platform?

ssrlive commented 2 months ago

https://github.com/WireGuard/wintun/blob/master/driver/wintun.c#L1103

image

You can’t blame me for this disgusting setting.