X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Flinux%2Fnetfilter.h;h=0ab7ca787b22058816889c856ed91266712f1878;hb=fee1cc0895fd7bde875a86bbc3a1e82089e540b8;hp=928a35ec21c7962370aa241e3e3efc9b2a56c158;hpb=ae90bdeaeac6b964b7a1e853a90a19f358a9ac20;p=karo-tx-linux.git diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index 928a35ec21c7..0ab7ca787b22 100644 --- a/include/linux/netfilter.h +++ b/include/linux/netfilter.h @@ -33,6 +33,8 @@ #define NF_QUEUE_NR(x) ((((x) << NF_VERDICT_BITS) & NF_VERDICT_QMASK) | NF_QUEUE) +#define NF_DROP_ERR(x) (((-x) << NF_VERDICT_BITS) | NF_DROP) + /* only for userspace compatibility */ #ifndef __KERNEL__ /* Generic cache responses from hook functions. @@ -215,7 +217,7 @@ NF_HOOK_COND(uint8_t pf, unsigned int hook, struct sk_buff *skb, int ret; if (!cond || - (ret = nf_hook_thresh(pf, hook, skb, in, out, okfn, INT_MIN) == 1)) + ((ret = nf_hook_thresh(pf, hook, skb, in, out, okfn, INT_MIN)) == 1)) ret = okfn(skb); return ret; }