blob: 5f1c5b65e8c404221bee220123a6ff24d1b79d34 [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,
Pablo Neira Ayusod7aeda52013-07-08 19:34:12 +020011 struct xtc_handle **handle, bool restore);
Yasuyuki KOZAKAI9867e812005-06-22 12:24:21 +000012
Jan Engelhardt1639fe82011-08-27 11:39:52 +020013extern int for_each_chain6(int (*fn)(const xt_chainlabel, int, struct xtc_handle *), int verbose, int builtinstoo, struct xtc_handle *handle);
14extern int flush_entries6(const xt_chainlabel chain, int verbose, struct xtc_handle *handle);
15extern int delete_chain6(const xt_chainlabel chain, int verbose, struct xtc_handle *handle);
16void print_rule6(const struct ip6t_entry *e, struct xtc_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*/