1 #ifndef __LINUX_NETFILTER_H
2 #define __LINUX_NETFILTER_H
4 #include <linux/types.h>
7 /* Responses from hook functions. */
14 #define NF_MAX_VERDICT NF_STOP
16 /* we overload the higher bits for encoding auxiliary data such as the queue
17 * number. Not nice, but better than additional function arguments. */
18 #define NF_VERDICT_MASK 0x0000ffff
19 #define NF_VERDICT_BITS 16
21 #define NF_VERDICT_QMASK 0xffff0000
22 #define NF_VERDICT_QBITS 16
24 #define NF_QUEUE_NR(x) ((((x) << NF_VERDICT_BITS) & NF_VERDICT_QMASK) | NF_QUEUE)
26 /* only for userspace compatibility */
27 /* Generic cache responses from hook functions.
28 <= 0x2000 is used for protocol-flags. */
29 #define NFC_UNKNOWN 0x4000
30 #define NFC_ALTERED 0x8000
59 #endif /*__LINUX_NETFILTER_H*/