diff options
author | gandalf <gandalf> | 2004-02-02 20:01:18 +0000 |
---|---|---|
committer | gandalf <gandalf> | 2004-02-02 20:01:18 +0000 |
commit | 58cd974ad5fc5635375a2802d070c836da79e36f (patch) | |
tree | aaf959b4996a3d1eed834e89d5a4379358a1fa0a /include | |
parent | 9fa09dff1c5bbc7a01f45aa6c3f6e4eaab5fc683 (diff) |
Make sure to use matches in the order they are given when calling do_command() multiple times.
Diffstat (limited to 'include')
-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 205984e..a0dda60 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); |