summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorart <art@openbsd.org>2003-04-01 23:42:24 +0000
committerart <art@openbsd.org>2003-04-01 23:42:24 +0000
commitd412d870e1d9770d99b2c7d9126a61c9b0b53493 (patch)
tree7a0e92dd42514e95129204a13694963299061232 /lib/libc
parentuse PAGE_MASK instead of PAGE_SIZE-1 (diff)
downloadwireguard-openbsd-d412d870e1d9770d99b2c7d9126a61c9b0b53493.tar.xz
wireguard-openbsd-d412d870e1d9770d99b2c7d9126a61c9b0b53493.zip
When using bpf(4) in immediate mode, and using kevent(2) to receive
notification of packet arrival, the usermode application isn't notified until a second packet arrives. This is because KNOTE() calls filt_bpfread() before bd_slen has been updated with the newly arrived packet length, so it looks like there is no data there. Moving the bpf_wakeup() call for immediate mode to after bd_slen is set fixes it. From: wayne@epipe.com.au in pr 3175
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions