blob: 663da9caae19fe8f24ad8d1d586c11f642de9192 [file] [log] [blame]
Rusty Russell79dee072000-05-02 16:45:16 +00001#ifndef _IP6TABLES_USER_H
2#define _IP6TABLES_USER_H
3
Jan Engelhardtef18e812008-08-04 12:47:48 +02004#include <netinet/ip.h>
Yasuyuki KOZAKAI0d502bc2007-07-24 05:52:07 +00005#include <xtables.h>
Jan Engelhardtef18e812008-08-04 12:47:48 +02006#include <libiptc/libip6tc.h>
Jan Engelhardtc02e8082009-02-10 10:40:15 +01007#include <iptables/internal.h>
Rusty Russell79dee072000-05-02 16:45:16 +00008
Rémi Denis-Courmont06652172006-10-20 12:24:34 +00009#ifndef IP6T_SO_GET_REVISION_MATCH /* Old kernel source. */
Yasuyuki KOZAKAI4ebfad02006-11-13 04:03:26 +000010#define IP6T_SO_GET_REVISION_MATCH 68
11#define IP6T_SO_GET_REVISION_TARGET 69
Rémi Denis-Courmont06652172006-10-20 12:24:34 +000012#endif /* IP6T_SO_GET_REVISION_MATCH Old kernel source */
13
Yasuyuki KOZAKAI0d502bc2007-07-24 05:52:07 +000014#define ip6tables_rule_match xtables_rule_match
Yasuyuki KOZAKAI0d502bc2007-07-24 05:52:07 +000015#define ip6t_tryload xt_tryload
Rusty Russell79dee072000-05-02 16:45:16 +000016
Harald Weltea8658ca2003-03-05 07:46:15 +000017extern int line;
18
Rusty Russell79dee072000-05-02 16:45:16 +000019/* Your shared library should call one of these. */
Rusty Russell79dee072000-05-02 16:45:16 +000020extern int do_command6(int argc, char *argv[], char **table,
Jan Engelhardtfd187312008-11-10 16:59:27 +010021 struct ip6tc_handle **handle);
Yasuyuki KOZAKAI9867e812005-06-22 12:24:21 +000022
Jan Engelhardt1c9015b2008-11-10 17:00:41 +010023extern 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);
András Kis-Szabó764316a2001-02-26 17:31:20 +000027
Rusty Russell79dee072000-05-02 16:45:16 +000028#endif /*_IP6TABLES_USER_H*/