From 78cafdaf474a333fa39efab4aa4c9aed88ab9518 Mon Sep 17 00:00:00 2001 From: Martin Josefsson Date: Mon, 2 Feb 2004 20:01:18 +0000 Subject: Make sure to use matches in the order they are given when calling do_command() multiple times. --- include/iptables.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include') 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); -- cgit v1.2.3