ip6tables.h revision ef18e8147903885708d1c264904129af4fb636d6
1#ifndef _IP6TABLES_USER_H
2#define _IP6TABLES_USER_H
3
4#include <netinet/ip.h>
5#include <xtables.h>
6#include <libiptc/libip6tc.h>
7
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 */
12
13#define ip6tables_rule_match	xtables_rule_match
14#define ip6t_tryload		xt_tryload
15
16extern int line;
17
18/* Your shared library should call one of these. */
19extern int do_command6(int argc, char *argv[], char **table,
20		       ip6tc_handle_t *handle);
21
22extern int for_each_chain(int (*fn)(const ip6t_chainlabel, int, ip6tc_handle_t *), int verbose, int builtinstoo, ip6tc_handle_t *handle);
23extern int flush_entries(const ip6t_chainlabel chain, int verbose, ip6tc_handle_t *handle);
24extern int delete_chain(const ip6t_chainlabel chain, int verbose, ip6tc_handle_t *handle);
25void print_rule(const struct ip6t_entry *e, ip6tc_handle_t *h, const char *chain, int counters);
26
27#endif /*_IP6TABLES_USER_H*/
28