]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
wintun: Move exchange buffer in separate struct on heap
authorSimon Rozman <simon@rozman.si>
Wed, 20 Feb 2019 10:41:37 +0000 (11:41 +0100)
committerSimon Rozman <simon@rozman.si>
Wed, 20 Feb 2019 10:41:37 +0000 (11:41 +0100)
commit6581cfb8850ee98dc9ee7aceb76e51b0de904db1
treed9a3b87f19d71127c4a94cce522b5fe762e343c9
parent486308912077a665006afa93c76b9fa377446d12
wintun: Move exchange buffer in separate struct on heap

This allows buffer alignment and keeps it together with its meta-data.

Furthermore, the write buffer has been reduced - as long as we flush
after _every_ write, we don't need a 1MiB write buffer.

Signed-off-by: Simon Rozman <simon@rozman.si>
tun/tun_windows.go