summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2008-02-25 21:24:53 +0000
committermav <mav@FreeBSD.org>2008-02-25 21:24:53 +0000
commit2d0cb9a815cafd9140b0797528fc0fcb1eabbd70 (patch)
treeecf0a13472f2002c140cd9fea6bf0d6c6bc587e8 /sys/netgraph
parent7ca346a265423cfa74eee348370cdb53da62bbca (diff)
downloadFreeBSD-src-2d0cb9a815cafd9140b0797528fc0fcb1eabbd70.zip
FreeBSD-src-2d0cb9a815cafd9140b0797528fc0fcb1eabbd70.tar.gz
Fix incorrect constant used in rev. 1.146 that broke node writer locking.
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c
index 9ddec1d..64963c9 100644
--- a/sys/netgraph/ng_base.c
+++ b/sys/netgraph/ng_base.c
@@ -2310,7 +2310,7 @@ ng_snd_item(item_p item, int flags)
* writer semantics. Similarly, the node may say one hook always
* produces writers. These are overrides.
*/
- if (((item->el_flags & NGQF_RW) == NGQRW_W) ||
+ if (((item->el_flags & NGQF_RW) == NGQF_WRITER) ||
(node->nd_flags & NGF_FORCE_WRITER) ||
(hook && (hook->hk_flags & HK_FORCE_WRITER))) {
rw = NGQRW_W;
OpenPOWER on IntegriCloud