summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
author/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kadlec/emailAddress=kadlec@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kadlec/emailAddress=kadlec@netfilter.org>2006-03-03 09:36:50 +0000
committer/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kadlec/emailAddress=kadlec@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kadlec/emailAddress=kadlec@netfilter.org>2006-03-03 09:36:50 +0000
commit74c14ed8f0fe59a355fd678be9dacaaadf19adf5 (patch)
treea219981be0b1354e72a323b25cc044a692234d2c /include
parent838dcc15ab2052711b732ead918a8e146b7c3451 (diff)
Multiple matches of the same type can be specified on the commandline.
If two or more matches of the same type are detected then the options are assumed to be grouped in order to tell which option belongs to which match: ... -m foo ... <options0> ... -m foo ... <options1> ... Otherwise the commandline parsing is unmodified.
Diffstat (limited to 'include')
-rw-r--r--include/ip6tables.h4
-rw-r--r--include/iptables.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/include/ip6tables.h b/include/ip6tables.h
index 549e041..d5ea878 100644
--- a/include/ip6tables.h
+++ b/include/ip6tables.h
@@ -13,6 +13,10 @@ struct ip6tables_rule_match
struct ip6tables_rule_match *next;
struct ip6tables_match *match;
+
+ /* Multiple matches of the same type: the ones before
+ the current one are completed from parsing point of view */
+ unsigned int completed;
};
/* Include file for additions: new matches and targets. */
diff --git a/include/iptables.h b/include/iptables.h
index bf71e52..c56a005 100644
--- a/include/iptables.h
+++ b/include/iptables.h
@@ -29,6 +29,10 @@ struct iptables_rule_match
struct iptables_rule_match *next;
struct iptables_match *match;
+
+ /* Multiple matches of the same type: the ones before
+ the current one are completed from parsing point of view */
+ unsigned int completed;
};
/* Include file for additions: new matches and targets. */