ip6tables.h revision c02e80878979d2205f3d89d05548397871e598e9
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#include <iptables/internal.h>
8
9#ifndef IP6T_SO_GET_REVISION_MATCH /* Old kernel source. */
10#define IP6T_SO_GET_REVISION_MATCH	68
11#define IP6T_SO_GET_REVISION_TARGET	69
12#endif /* IP6T_SO_GET_REVISION_MATCH   Old kernel source */
13
14#define ip6tables_rule_match	xtables_rule_match
15#define ip6t_tryload		xt_tryload
16
17extern int line;
18
19/* Your shared library should call one of these. */
20extern int do_command6(int argc, char *argv[], char **table,
21		       struct ip6tc_handle **handle);
22
23extern int for_each_chain(int (*fn)(const ip6t_chainlabel, int, struct ip6tc_handle *), int verbose, int builtinstoo, struct ip6tc_handle *handle);
24extern int flush_entries(const ip6t_chainlabel chain, int verbose, struct ip6tc_handle *handle);
25extern int delete_chain(const ip6t_chainlabel chain, int verbose, struct ip6tc_handle *handle);
26void print_rule(const struct ip6t_entry *e, struct ip6tc_handle *h, const char *chain, int counters);
27
28#endif /*_IP6TABLES_USER_H*/
29