Rusty Russell | 79dee07 | 2000-05-02 16:45:16 +0000 | [diff] [blame] | 1 | #ifndef _IP6TABLES_USER_H |
| 2 | #define _IP6TABLES_USER_H |
| 3 | |
Jan Engelhardt | ef18e81 | 2008-08-04 12:47:48 +0200 | [diff] [blame] | 4 | #include <netinet/ip.h> |
Yasuyuki KOZAKAI | 0d502bc | 2007-07-24 05:52:07 +0000 | [diff] [blame] | 5 | #include <xtables.h> |
Jan Engelhardt | ef18e81 | 2008-08-04 12:47:48 +0200 | [diff] [blame] | 6 | #include <libiptc/libip6tc.h> |
Jan Engelhardt | c02e808 | 2009-02-10 10:40:15 +0100 | [diff] [blame] | 7 | #include <iptables/internal.h> |
Rusty Russell | 79dee07 | 2000-05-02 16:45:16 +0000 | [diff] [blame] | 8 | |
Rusty Russell | 79dee07 | 2000-05-02 16:45:16 +0000 | [diff] [blame] | 9 | /* Your shared library should call one of these. */ |
Rusty Russell | 79dee07 | 2000-05-02 16:45:16 +0000 | [diff] [blame] | 10 | extern int do_command6(int argc, char *argv[], char **table, |
Jan Engelhardt | fd18731 | 2008-11-10 16:59:27 +0100 | [diff] [blame] | 11 | struct ip6tc_handle **handle); |
Yasuyuki KOZAKAI | 9867e81 | 2005-06-22 12:24:21 +0000 | [diff] [blame] | 12 | |
Jan Engelhardt | 1c9015b | 2008-11-10 17:00:41 +0100 | [diff] [blame] | 13 | extern int for_each_chain(int (*fn)(const ip6t_chainlabel, int, struct ip6tc_handle *), int verbose, int builtinstoo, struct ip6tc_handle *handle); |
| 14 | extern int flush_entries(const ip6t_chainlabel chain, int verbose, struct ip6tc_handle *handle); |
| 15 | extern int delete_chain(const ip6t_chainlabel chain, int verbose, struct ip6tc_handle *handle); |
| 16 | void print_rule(const struct ip6t_entry *e, struct ip6tc_handle *h, const char *chain, int counters); |
András Kis-Szabó | 764316a | 2001-02-26 17:31:20 +0000 | [diff] [blame] | 17 | |
Jamal Hadi Salim | 617d3d1 | 2009-02-11 16:28:31 -0500 | [diff] [blame] | 18 | extern struct xtables_globals ip6tables_globals; |
| 19 | |
Rusty Russell | 79dee07 | 2000-05-02 16:45:16 +0000 | [diff] [blame] | 20 | #endif /*_IP6TABLES_USER_H*/ |