diff options
author | 2010-07-08 08:15:18 +0000 | |
---|---|---|
committer | 2010-07-08 08:15:18 +0000 | |
commit | 4e0e87f538ce02b7716ffe91e020442df0f4f19f (patch) | |
tree | 8891aab4b5e318842c0acf2d3bc8bec19389dca6 /sys/net/if_tun.c | |
parent | Move pool initialization to init_crypto and zap the crypto_pool_initialized (diff) | |
download | wireguard-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