Sapan says vnet_tun is obsolete.
[iptables.git] / include / ip6tables.h
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_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
16 extern int line;
17
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);
21
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);
26
27 #endif /*_IP6TABLES_USER_H*/