diff options
| author | 2012-12-21 11:17:22 +0000 | |
|---|---|---|
| committer | 2012-12-21 11:17:22 +0000 | |
| commit | b2f04b0a19e533bad2963396c6758f12e5db2596 (patch) | |
| tree | 10e02c11caf31bfaf01f5bfdd7f0227e0fbefe6b /lib/libc/stdlib/malloc.c | |
| parent | bpf allocates packet buffers in the ioctl path and can sleep (diff) | |
| download | wireguard-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
