blob: e976361f0023f43da3ffd077811314d4ae117a2b [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
Maciej Zenczykowski241e7352011-04-04 15:34:54 +020013extern int for_each_chain6(int (*fn)(const ip6t_chainlabel, int, struct ip6tc_handle *), int verbose, int builtinstoo, struct ip6tc_handle *handle);
Maciej Zenczykowski74ace0a2011-04-04 15:35:47 +020014extern int flush_entries6(const ip6t_chainlabel chain, int verbose, struct ip6tc_handle *handle);
Maciej Zenczykowski85aae152011-04-04 15:36:45 +020015extern int delete_chain6(const ip6t_chainlabel chain, int verbose, struct ip6tc_handle *handle);
Maciej Zenczykowski9680f2e2011-04-04 15:37:43 +020016void print_rule6(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*/