diff options
author | Martin Josefsson <gandalf@wlug.westbo.se> | 2004-02-02 20:02:10 +0000 |
---|---|---|
committer | Martin Josefsson <gandalf@wlug.westbo.se> | 2004-02-02 20:02:10 +0000 |
commit | 69ac0e086c7b90e82cec369570ca363201023bde (patch) | |
tree | 82fde73e5d6bc9d09c0bedd5debb64e99eb8753f /include/ip6tables.h | |
parent | 78cafdaf474a333fa39efab4aa4c9aed88ab9518 (diff) |
Bloody copy-n-edit. Make sure to use matches in the order they are given...
Diffstat (limited to 'include/ip6tables.h')
-rw-r--r-- | include/ip6tables.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/ip6tables.h b/include/ip6tables.h index b098f81c..8360617c 100644 --- a/include/ip6tables.h +++ b/include/ip6tables.h @@ -4,6 +4,13 @@ #include "iptables_common.h" #include "libiptc/libip6tc.h" +struct ip6tables_rule_match +{ + struct ip6tables_rule_match *next; + + struct ip6tables_match *match; +}; + /* Include file for additions: new matches and targets. */ struct ip6tables_match { @@ -50,7 +57,6 @@ struct ip6tables_match unsigned int option_offset; struct ip6t_entry_match *m; unsigned int mflags; - unsigned int used; #ifdef NO_SHARED_LIBS unsigned int loaded; /* simulate loading so options are merged properly */ #endif @@ -125,7 +131,7 @@ enum ip6t_tryload { }; extern struct ip6tables_target *find_target(const char *name, enum ip6t_tryload); -extern struct ip6tables_match *find_match(const char *name, enum ip6t_tryload); +extern struct ip6tables_match *find_match(const char *name, enum ip6t_tryload, struct ip6tables_rule_match **match); extern int for_each_chain(int (*fn)(const ip6t_chainlabel, int, ip6tc_handle_t *), int verbose, int builtinstoo, ip6tc_handle_t *handle); extern int flush_entries(const ip6t_chainlabel chain, int verbose, ip6tc_handle_t *handle); |