1 #ifndef _IP6TABLES_USER_H
2 #define _IP6TABLES_USER_H
6 #include "libiptc/libip6tc.h"
8 #ifndef IP6T_SO_GET_REVISION_MATCH /* Old kernel source. */
9 #define IP6T_SO_GET_REVISION_MATCH 68
10 #define IP6T_SO_GET_REVISION_TARGET 69
11 #endif /* IP6T_SO_GET_REVISION_MATCH Old kernel source */
13 #define ip6tables_rule_match xtables_rule_match
14 #define ip6t_tryload xt_tryload
18 /* Your shared library should call one of these. */
19 extern int do_command6(int argc, char *argv[], char **table,
20 ip6tc_handle_t *handle);
22 extern int for_each_chain(int (*fn)(const ip6t_chainlabel, int, ip6tc_handle_t *), int verbose, int builtinstoo, ip6tc_handle_t *handle);
23 extern int flush_entries(const ip6t_chainlabel chain, int verbose, ip6tc_handle_t *handle);
24 extern int delete_chain(const ip6t_chainlabel chain, int verbose, ip6tc_handle_t *handle);
25 void print_rule(const struct ip6t_entry *e, ip6tc_handle_t *h, const char *chain, int counters);
27 #endif /*_IP6TABLES_USER_H*/