summaryrefslogtreecommitdiff
path: root/share/man
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2019-08-16 04:09:03 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2019-08-16 04:09:03 +0000
commit7578bdf179c7036fa48c0d5b572924810eb8eaac (patch)
treeb587c141a49ab422b249c793c687c8e449fb84b3 /share/man
parentf4d81b40d01e780385e79f509dc699e74e43586b (diff)
ifq_hdatalen should keep the mbuf it's looking at, not leak it.
ie, use ifq_deq_rollback after looking at the head mbuf instead of ifq_deq_commit. this is used in tun/tap, where it had the effect that you'd get the datalen for the packet, and then when you try to read that many bytes it had gone. cool and normal. this was found by a student who was trying to do just that. i've always just read the packet into a large buffer.
Diffstat (limited to 'share/man')
0 files changed, 0 insertions, 0 deletions