diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2019-08-16 04:09:03 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2019-08-16 04:09:03 +0000 |
commit | 7578bdf179c7036fa48c0d5b572924810eb8eaac (patch) | |
tree | b587c141a49ab422b249c793c687c8e449fb84b3 /share/man | |
parent | f4d81b40d01e780385e79f509dc699e74e43586b (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