summaryrefslogtreecommitdiffstats
path: root/xshared.h
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2011-02-07 03:16:14 +0100
committerJan Engelhardt <jengelh@medozas.de>2011-02-07 03:16:14 +0100
commitf4b6e5290e869fccb87c03da5603a38b7e55abc5 (patch)
treec911d32f4561935d2e90b3aff12439c2913b97dc /xshared.h
parentf1e71016dddb65709afe0746a96a3fefbec3ba27 (diff)
src: put shared option flags into xshared
This will be needed for the find_proto function. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'xshared.h')
-rw-r--r--xshared.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/xshared.h b/xshared.h
index 11d95fe5..06d73ab9 100644
--- a/xshared.h
+++ b/xshared.h
@@ -5,6 +5,21 @@
#include <linux/netfilter_ipv4/ip_tables.h>
#include <linux/netfilter_ipv6/ip6_tables.h>
+enum {
+ OPT_NONE = 0,
+ OPT_NUMERIC = 1 << 0,
+ OPT_SOURCE = 1 << 1,
+ OPT_DESTINATION = 1 << 2,
+ OPT_PROTOCOL = 1 << 3,
+ OPT_JUMP = 1 << 4,
+ OPT_VERBOSE = 1 << 5,
+ OPT_EXPANDED = 1 << 6,
+ OPT_VIANAMEIN = 1 << 7,
+ OPT_VIANAMEOUT = 1 << 8,
+ OPT_LINENUMBERS = 1 << 9,
+ OPT_COUNTERS = 1 << 10,
+};
+
struct xtables_rule_match;
struct xtables_target;