summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2012-12-21 11:17:22 +0000
committermikeb <mikeb@openbsd.org>2012-12-21 11:17:22 +0000
commitb2f04b0a19e533bad2963396c6758f12e5db2596 (patch)
tree10e02c11caf31bfaf01f5bfdd7f0227e0fbefe6b /lib/libc/stdlib/malloc.c
parentbpf allocates packet buffers in the ioctl path and can sleep (diff)
downloadwireguard-openbsd-b2f04b0a19e533bad2963396c6758f12e5db2596.tar.xz
wireguard-openbsd-b2f04b0a19e533bad2963396c6758f12e5db2596.zip
Rather than calling mircotime in bpf_catchpacket each time it's called
on a packet, make bpf_catchpacket take a timeval indicating when the packet was captured. Move microtime to the calling functions and grab the timestamp as soon as we know that we're going to call catchpacket at least once. From NetBSD, ok deraadt, claudio, sthen
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions