blob: ca0f9a0536c26c80621aae515b491d55c48a2840 [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
Rusty Russell79dee072000-05-02 16:45:16 +00009/* Your shared library should call one of these. */
Rusty Russell79dee072000-05-02 16:45:16 +000010extern int do_command6(int argc, char *argv[], char **table,
Jan Engelhardtfd187312008-11-10 16:59:27 +010011 struct ip6tc_handle **handle);
Yasuyuki KOZAKAI9867e812005-06-22 12:24:21 +000012
Jan Engelhardt1c9015b2008-11-10 17:00:41 +010013extern int for_each_chain(int (*fn)(const ip6t_chainlabel, int, struct ip6tc_handle *), int verbose, int builtinstoo, struct ip6tc_handle *handle);
14extern int flush_entries(const ip6t_chainlabel chain, int verbose, struct ip6tc_handle *handle);
15extern int delete_chain(const ip6t_chainlabel chain, int verbose, struct ip6tc_handle *handle);
16void 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 +000017
Jamal Hadi Salim617d3d12009-02-11 16:28:31 -050018extern struct xtables_globals ip6tables_globals;
19
Rusty Russell79dee072000-05-02 16:45:16 +000020#endif /*_IP6TABLES_USER_H*/