mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-11 16:29:05 +00:00
[NETFILTER]: Fix NF_QUEUE_NR() macro
I obviously wanted to use bitwise-or, not logical or. Signed-off-by: Harald Welte <laforge@netfilter.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
622439270c
commit
5917ed961d
@ -29,7 +29,7 @@
|
|||||||
#define NF_VERDICT_QMASK 0xffff0000
|
#define NF_VERDICT_QMASK 0xffff0000
|
||||||
#define NF_VERDICT_QBITS 16
|
#define NF_VERDICT_QBITS 16
|
||||||
|
|
||||||
#define NF_QUEUE_NR(x) ((x << NF_VERDICT_QBITS) & NF_VERDICT_QMASK || NF_QUEUE)
|
#define NF_QUEUE_NR(x) ((x << NF_VERDICT_QBITS) & NF_VERDICT_QMASK | NF_QUEUE)
|
||||||
|
|
||||||
/* only for userspace compatibility */
|
/* only for userspace compatibility */
|
||||||
#ifndef __KERNEL__
|
#ifndef __KERNEL__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user