diff options
author | Simon Rozman <simon@rozman.si> | 2021-04-12 13:08:42 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-04-13 15:56:04 -0600 |
commit | 47b16dc884992d9c100bc0161d4ca6776a3cd507 (patch) | |
tree | d190ac907cc18785575f078ab8229862550d9cc6 /driver/undocumented.h | |
parent | Allow optional padding before and after layer 3 packets (diff) | |
download | wintun-sr/api-improvements.tar.xz wintun-sr/api-improvements.zip |
Allow packet over-allocation on sendsr/api-improvements
Should client desire to prepare packets for Wintun inside the ring
memory (e.g. to reduce memory copying), the final sending packet size is
not always known at the WintunAllocateSendPacket() time.
This commit modifies Wintun to calculate the packet size on delivery to
NDIS. The packet size is derived from IPv4/IPv6 packet header.
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'driver/undocumented.h')
0 files changed, 0 insertions, 0 deletions