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> |
Rusty Russell | 79dee07 | 2000-05-02 16:45:16 +0000 | [diff] [blame] | 7 | |
Rémi Denis-Courmont | 0665217 | 2006-10-20 12:24:34 +0000 | [diff] [blame] | 8 | #ifndef IP6T_SO_GET_REVISION_MATCH /* Old kernel source. */ |
Yasuyuki KOZAKAI | 4ebfad0 | 2006-11-13 04:03:26 +0000 | [diff] [blame] | 9 | #define IP6T_SO_GET_REVISION_MATCH 68 |
| 10 | #define IP6T_SO_GET_REVISION_TARGET 69 |
Rémi Denis-Courmont | 0665217 | 2006-10-20 12:24:34 +0000 | [diff] [blame] | 11 | #endif /* IP6T_SO_GET_REVISION_MATCH Old kernel source */ |
| 12 | |
Yasuyuki KOZAKAI | 0d502bc | 2007-07-24 05:52:07 +0000 | [diff] [blame] | 13 | #define ip6tables_rule_match xtables_rule_match |
Yasuyuki KOZAKAI | 0d502bc | 2007-07-24 05:52:07 +0000 | [diff] [blame] | 14 | #define ip6t_tryload xt_tryload |
Rusty Russell | 79dee07 | 2000-05-02 16:45:16 +0000 | [diff] [blame] | 15 | |
Harald Welte | a8658ca | 2003-03-05 07:46:15 +0000 | [diff] [blame] | 16 | extern int line; |
| 17 | |
Rusty Russell | 79dee07 | 2000-05-02 16:45:16 +0000 | [diff] [blame] | 18 | /* Your shared library should call one of these. */ |
Rusty Russell | 79dee07 | 2000-05-02 16:45:16 +0000 | [diff] [blame] | 19 | extern int do_command6(int argc, char *argv[], char **table, |
Jan Engelhardt | fd18731 | 2008-11-10 16:59:27 +0100 | [diff] [blame] | 20 | struct ip6tc_handle **handle); |
Yasuyuki KOZAKAI | 9867e81 | 2005-06-22 12:24:21 +0000 | [diff] [blame] | 21 | |
Jan Engelhardt | 1c9015b | 2008-11-10 17:00:41 +0100 | [diff] [blame^] | 22 | extern int for_each_chain(int (*fn)(const ip6t_chainlabel, int, struct ip6tc_handle *), int verbose, int builtinstoo, struct ip6tc_handle *handle); |
| 23 | extern int flush_entries(const ip6t_chainlabel chain, int verbose, struct ip6tc_handle *handle); |
| 24 | extern int delete_chain(const ip6t_chainlabel chain, int verbose, struct ip6tc_handle *handle); |
| 25 | 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] | 26 | |
Rusty Russell | 79dee07 | 2000-05-02 16:45:16 +0000 | [diff] [blame] | 27 | #endif /*_IP6TABLES_USER_H*/ |