1 /* iptables module for using NFQUEUE mechanism 2 * 3 * (C) 2005 Harald Welte <laforge@netfilter.org> 4 * 5 * This software is distributed under GNU GPL v2, 1991 6 * 7 */ 8 #ifndef _XT_NFQ_TARGET_H 9 #define _XT_NFQ_TARGET_H 10 11 #include <linux/types.h> 12 13 /* target info */ 14 struct xt_NFQ_info { 15 __u16 queuenum; 16 }; 17 18 struct xt_NFQ_info_v1 { 19 __u16 queuenum; 20 __u16 queues_total; 21 }; 22 23 struct xt_NFQ_info_v2 { 24 __u16 queuenum; 25 __u16 queues_total; 26 __u16 bypass; 27 }; 28 29 struct xt_NFQ_info_v3 { 30 __u16 queuenum; 31 __u16 queues_total; 32 __u16 flags; 33 #define NFQ_FLAG_BYPASS 0x01 /* for compatibility with v2 */ 34 #define NFQ_FLAG_CPU_FANOUT 0x02 /* use current CPU (no hashing) */ 35 #define NFQ_FLAG_MASK 0x03 36 }; 37 38 #endif /* _XT_NFQ_TARGET_H */ 39