blob: bb767fd73ed11109a22f0821ded0a17d886ab41a [file] [log] [blame]
Christopher Ferris25981132017-11-14 16:53:49 -08001/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
Ben Cheng30692c62013-10-15 18:26:18 -07002/* iptables module for using NFQUEUE mechanism
3 *
4 * (C) 2005 Harald Welte <laforge@netfilter.org>
5 *
6 * This software is distributed under GNU GPL v2, 1991
7 *
8*/
9#ifndef _XT_NFQ_TARGET_H
10#define _XT_NFQ_TARGET_H
11
12#include <linux/types.h>
13
14/* target info */
15struct xt_NFQ_info {
16 __u16 queuenum;
17};
18
19struct xt_NFQ_info_v1 {
20 __u16 queuenum;
21 __u16 queues_total;
22};
23
24struct xt_NFQ_info_v2 {
25 __u16 queuenum;
26 __u16 queues_total;
27 __u16 bypass;
28};
29
30struct xt_NFQ_info_v3 {
31 __u16 queuenum;
32 __u16 queues_total;
33 __u16 flags;
34#define NFQ_FLAG_BYPASS 0x01 /* for compatibility with v2 */
35#define NFQ_FLAG_CPU_FANOUT 0x02 /* use current CPU (no hashing) */
36#define NFQ_FLAG_MASK 0x03
37};
38
39#endif /* _XT_NFQ_TARGET_H */