diff options
author | Martin Josefsson <gandalf@wlug.westbo.se> | 2004-02-02 20:01:18 +0000 |
---|---|---|
committer | Martin Josefsson <gandalf@wlug.westbo.se> | 2004-02-02 20:01:18 +0000 |
commit | 78cafdaf474a333fa39efab4aa4c9aed88ab9518 (patch) | |
tree | aaf959b4996a3d1eed834e89d5a4379358a1fa0a /include/iptables.h | |
parent | 4e5e29adf4d3946253351b871aececfe652239b2 (diff) |
Make sure to use matches in the order they are given when calling do_command() multiple times.
Diffstat (limited to 'include/iptables.h')
-rw-r--r-- | include/iptables.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/iptables.h b/include/iptables.h index 205984eb..a0dda602 100644 --- a/include/iptables.h +++ b/include/iptables.h @@ -4,6 +4,13 @@ #include "iptables_common.h" #include "libiptc/libiptc.h" +struct iptables_rule_match +{ + struct iptables_rule_match *next; + + struct iptables_match *match; +}; + /* Include file for additions: new matches and targets. */ struct iptables_match { @@ -50,7 +57,6 @@ struct iptables_match unsigned int option_offset; struct ipt_entry_match *m; unsigned int mflags; - unsigned int used; #ifdef NO_SHARED_LIBS unsigned int loaded; /* simulate loading so options are merged properly */ #endif @@ -134,7 +140,7 @@ enum ipt_tryload { }; extern struct iptables_target *find_target(const char *name, enum ipt_tryload); -extern struct iptables_match *find_match(const char *name, enum ipt_tryload); +extern struct iptables_match *find_match(const char *name, enum ipt_tryload, struct iptables_rule_match **match); extern int delete_chain(const ipt_chainlabel chain, int verbose, iptc_handle_t *handle); |