diff options
author | Patrick McHardy <kaber@trash.net> | 2008-02-27 12:21:18 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-27 12:21:18 -0800 |
commit | fbabbed8284d1526ed01754ecd4fabdb941a1ff2 (patch) | |
tree | ddfe8bc9753436b0d1ecae3c464bb382088e9b86 /include/linux/netfilter.h | |
parent | 6556874dc3770aefae89907b3cf9be8e23d66137 (diff) | |
download | linux-stable-fbabbed8284d1526ed01754ecd4fabdb941a1ff2.tar.gz linux-stable-fbabbed8284d1526ed01754ecd4fabdb941a1ff2.tar.bz2 linux-stable-fbabbed8284d1526ed01754ecd4fabdb941a1ff2.zip |
[NETFILTER]: Fix NF_QUEUE_NR() parenthesis
Properly add parens around the macro argument. This is not needed by
the kernel but the macro is exported to userspace, so it shouldn't
make any assumptions.
Also use NF_VERDICT_BITS instead of NF_VERDICT_QBTIS for the left-shift
since thats whats logically correct.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netfilter.h')
-rw-r--r-- | include/linux/netfilter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index b74b615492e8..f0680c2bee73 100644 --- a/include/linux/netfilter.h +++ b/include/linux/netfilter.h @@ -31,7 +31,7 @@ #define NF_VERDICT_QMASK 0xffff0000 #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_BITS) & NF_VERDICT_QMASK) | NF_QUEUE) /* only for userspace compatibility */ #ifndef __KERNEL__ |