summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2000-12-01 14:28:19 +0000
committerHarald Welte <laforge@gnumonks.org>2000-12-01 14:28:19 +0000
commita114e9e8be802ab744d442449b3ec7de03c58621 (patch)
tree2c3a098250c7ac5419a831f820aac0e8fd5752d4
parentae1ff9f96a80379a650dec979b9902528a10d45a (diff)
make iptables-restore and iptables-save work again
-rw-r--r--include/iptables.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/iptables.h b/include/iptables.h
index 7ae7ab34..719db544 100644
--- a/include/iptables.h
+++ b/include/iptables.h
@@ -50,6 +50,7 @@ struct iptables_match
unsigned int option_offset;
struct ipt_entry_match *m;
unsigned int mflags;
+ unsigned int used;
};
struct iptables_target
@@ -96,6 +97,7 @@ struct iptables_target
unsigned int option_offset;
struct ipt_entry_target *t;
unsigned int tflags;
+ unsigned int used;
};
/* Your shared library should call one of these. */
@@ -119,4 +121,11 @@ 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 int delete_chain(const ipt_chainlabel chain, int verbose,
+ iptc_handle_t *handle);
+extern int flush_entries(const ipt_chainlabel chain, int verbose,
+ iptc_handle_t *handle);
+extern int for_each_chain(int (*fn)(const ipt_chainlabel, int, iptc_handle_t *),
+ int verbose, int builtinstoo, iptc_handle_t *handle);
#endif /*_IPTABLES_USER_H*/