Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: WireGuard/wintun
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: WireGuard/wintun
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: sr/api-improvements
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 6 files changed
  • 1 contributor

Commits on Apr 13, 2021

  1. Allow optional padding before and after layer 3 packets

    To avoid additional packet memory allocation and copy when sending or
    receiving packets, this commit introduces additional available space
    before and after layer 3 IPv4 or IPv6 packet in the Wintun rings. Wintun
    will ignore data in those areas.
    
    Requested-by: David Woodhouse <[email protected]>
    Signed-off-by: Simon Rozman <[email protected]>
    rozmansi authored and zx2c4 committed Apr 13, 2021
    Configuration menu
    Copy the full SHA
    564a883 View commit details
    Browse the repository at this point in the history
  2. Allow packet over-allocation on send

    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 <[email protected]>
    rozmansi authored and zx2c4 committed Apr 13, 2021
    Configuration menu
    Copy the full SHA
    47b16dc View commit details
    Browse the repository at this point in the history
Loading