Searched hist:151238 (Results 1 - 1 of 1) sorted by relevance

/freebsd-11-stable/sys/netgraph/
H A Dng_base.cdiff 151238 Tue Oct 11 11:48:38 MDT 2005 glebius 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().

Completed in 124 milliseconds