Because of that, the code is easier to read and maintain comparison to existing NDIS miniport drivers. The driver is being developed using modern frameworks - WDF and NetAdapterCx. When using ovpn-dco-win, the OpenVPN software doesn't send data traffic back and forth between user and kernel space (for encryption, decryption and routing), but operations on payload take place in Windows kernel. It is a modern Windows driver, which functions as virtual network adapter and implements required functionality to handle the OpenVPN data channel. Ovpn-dco-win stands for "OpenVPN Data Channel Offload for Windows". OVPN_SOCKET_RX_PACKET_BUFFER_SIZE to indicate that this is RX specific. rename OVPN_SOCKET_PACKET_BUFFER_SIZE to remove duplicated code to assign item size each pool item of size MTU_MAX (1500) + HEADROOM (24 max crypto overhead To feed us with packet (combined fragments) larger than MTU.Īlso make Tx buffer code a bit more cleaner: Bail out if by some reasons NetAdapter decides As a sideĮffect this prevents user from setting the larger MTU. Set adapter MTU to 1500 on adapter initialization. The larger MTU on the fly and face dire consequences. But in some strange case this did happen. Normally this doesn't happen because userspace sets MTU (at least on IPv4) Set proper MTU and add maximum packet size check on Tx path Tx buffer item size was hardcoded to 2048.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |