blob: 52e290c74007876c3c674111018c8dcc1688953d [file] [log] [blame]
#ifndef _IP6TABLES_USER_H
#define _IP6TABLES_USER_H
#include <netinet/ip.h>
#include <xtables.h>
#include <libiptc/libip6tc.h>
#include <iptables/internal.h>
#ifndef IP6T_SO_GET_REVISION_MATCH /* Old kernel source. */
#define IP6T_SO_GET_REVISION_MATCH 68
#define IP6T_SO_GET_REVISION_TARGET 69
#endif /* IP6T_SO_GET_REVISION_MATCH Old kernel source */
#define ip6t_tryload xt_tryload
extern int line;
/* Your shared library should call one of these. */
extern int do_command6(int argc, char *argv[], char **table,
struct ip6tc_handle **handle);
extern int for_each_chain(int (*fn)(const ip6t_chainlabel, int, struct ip6tc_handle *), int verbose, int builtinstoo, struct ip6tc_handle *handle);
extern int flush_entries(const ip6t_chainlabel chain, int verbose, struct ip6tc_handle *handle);
extern int delete_chain(const ip6t_chainlabel chain, int verbose, struct ip6tc_handle *handle);
void print_rule(const struct ip6t_entry *e, struct ip6tc_handle *h, const char *chain, int counters);
#endif /*_IP6TABLES_USER_H*/