ip6tables.h revision a3732db1280f790b8e26b41bdcbe8b5f92b7f51b
1#ifndef _IP6TABLES_USER_H 2#define _IP6TABLES_USER_H 3 4#include <xtables.h> 5 6#include "libiptc/libip6tc.h" 7 8#ifndef IP6T_LIB_DIR 9#define IP6T_LIB_DIR XT_LIB_DIR 10#endif 11 12#ifndef IP6T_SO_GET_REVISION_MATCH /* Old kernel source. */ 13#define IP6T_SO_GET_REVISION_MATCH 68 14#define IP6T_SO_GET_REVISION_TARGET 69 15#endif /* IP6T_SO_GET_REVISION_MATCH Old kernel source */ 16 17#define ip6tables_rule_match xtables_rule_match 18#define ip6tables_match xtables_match 19#define ip6tables_target xtables_target 20#define ip6t_tryload xt_tryload 21 22extern int line; 23 24/* Your shared library should call one of these. */ 25extern void register_match6(struct ip6tables_match *me); 26extern void register_target6(struct ip6tables_target *me); 27 28extern int do_command6(int argc, char *argv[], char **table, 29 ip6tc_handle_t *handle); 30 31extern int for_each_chain(int (*fn)(const ip6t_chainlabel, int, ip6tc_handle_t *), int verbose, int builtinstoo, ip6tc_handle_t *handle); 32extern int flush_entries(const ip6t_chainlabel chain, int verbose, ip6tc_handle_t *handle); 33extern int delete_chain(const ip6t_chainlabel chain, int verbose, ip6tc_handle_t *handle); 34 35#endif /*_IP6TABLES_USER_H*/ 36