X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fip6tables.h;fp=include%2Fip6tables.h;h=81d99d861fb785047640042f3476b0ea86025a0e;hb=6afea0b41dfbc3824956d11d960ad80097218feb;hp=b098f81c306f65c10ee1bc23d29574d3e9fc053e;hpb=f7b70cf9e00324b89b02de213bcd0dde7044d035;p=iptables.git diff --git a/include/ip6tables.h b/include/ip6tables.h index b098f81..81d99d8 100644 --- a/include/ip6tables.h +++ b/include/ip6tables.h @@ -4,6 +4,17 @@ #include "iptables_common.h" #include "libiptc/libip6tc.h" +#ifndef IP6T_LIB_DIR +#define IP6T_LIB_DIR "/usr/local/lib/iptables" +#endif + +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 +61,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 +135,9 @@ 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 void parse_interface(const char *arg, char *vianame, unsigned char *mask); 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);