summaryrefslogtreecommitdiffstats
path: root/sys/net/if_tun.c
diff options
context:
space:
mode:
authorthib <thib@openbsd.org>2010-07-08 08:15:18 +0000
committerthib <thib@openbsd.org>2010-07-08 08:15:18 +0000
commit4e0e87f538ce02b7716ffe91e020442df0f4f19f (patch)
tree8891aab4b5e318842c0acf2d3bc8bec19389dca6 /sys/net/if_tun.c
parentMove pool initialization to init_crypto and zap the crypto_pool_initialized (diff)
downloadwireguard-openbsd-4e0e87f538ce02b7716ffe91e020442df0f4f19f.tar.xz
wireguard-openbsd-4e0e87f538ce02b7716ffe91e020442df0f4f19f.zip
better op buf handling. Instead of mallocing a new buffer for every
encdec operation, keep a PAGE_SIZE (or not, depending if we fail during setup) buf around; if the crd_len is larger then the current buf, re allocate a new one that fits the data, and keep it around.
Diffstat (limited to 'sys/net/if_tun.c')
0 files changed, 0 insertions, 0 deletions