cvs commit: src/sys/netgraph ng_base.c
Gleb Smirnoff
glebius at FreeBSD.org
Tue Oct 11 06:48:39 PDT 2005
glebius 2005-10-11 13:48:38 UTC
FreeBSD src repository
Modified files:
sys/netgraph ng_base.c
Log:
Fix a regression introduced in rev. 1.107. If an item once had a writer
semantics, and then was reused for next node, it still would be applied
as writer again.
To fix the regression the decision is made never to alter item->el_flags
after the item has been allocated. This requires checking for overrides
both in ng_dequeue() and in ng_snd_item().
Details:
- Caller of the ng_apply_item() knows what is the current access to
node and specifies it to ng_apply_item(). The latter drops the
given access after item has beem applied.
- ng_dequeue() needs to be supplied with int pointer, where it stores
the obtained access on node.
- Check for node/hook access overrides in ng_dequeue().
Revision Changes Path
1.113 +28 -22 src/sys/netgraph/ng_base.c
More information about the cvs-src
mailing list