ysc3839 / UWPToyVpn

A UWP VPN plugin sample.
MIT License
39 stars 4 forks source link

the vpn will not work when call GetVpnSendPacketBuffer in IVpnPlugin::Encapsulate #2

Open 5ngs94jzqw opened 5 years ago

5ngs94jzqw commented 5 years ago

The vpn will not work when call GetVpnSendPacketBuffer in IVpnPlugin::Encapsulate.

After I change code to call GetVpnSendPacketBuffer in IVpnPlugin::Encapsulate, after some packets (no more than 100?) the IVpnPlugin::Encapsulate callback will not be called.

Good workaround:

may be workaround1:

may be workaround2:

So if you want your vpn packet have more bytes than mtu of the tun nework device, you can not in this uwp vpn api because of this bug.