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, |
Pablo Neira Ayuso | d7aeda5 | 2013-07-08 19:34:12 +0200 | [diff] [blame] | 11 | struct xtc_handle **handle, bool restore); |
Yasuyuki KOZAKAI | 9867e81 | 2005-06-22 12:24:21 +0000 | [diff] [blame] | 12 | |
Jan Engelhardt | 1639fe8 | 2011-08-27 11:39:52 +0200 | [diff] [blame] | 13 | extern int for_each_chain6(int (*fn)(const xt_chainlabel, int, struct xtc_handle *), int verbose, int builtinstoo, struct xtc_handle *handle); |
| 14 | extern int flush_entries6(const xt_chainlabel chain, int verbose, struct xtc_handle *handle); |
| 15 | extern int delete_chain6(const xt_chainlabel chain, int verbose, struct xtc_handle *handle); |
| 16 | void print_rule6(const struct ip6t_entry *e, struct xtc_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*/ |