Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 1 | #ifndef _IPTABLES_USER_H |
| 2 | #define _IPTABLES_USER_H |
| 3 | |
Jan Engelhardt | ef18e81 | 2008-08-04 12:47:48 +0200 | [diff] [blame] | 4 | #include <netinet/ip.h> |
| 5 | #include <xtables.h> |
| 6 | #include <libiptc/libiptc.h> |
Jan Engelhardt | c02e808 | 2009-02-10 10:40:15 +0100 | [diff] [blame] | 7 | #include <iptables/internal.h> |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 8 | |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 9 | /* Your shared library should call one of these. */ |
Maciej Zenczykowski | c1e04bd | 2011-04-04 15:38:11 +0200 | [diff] [blame] | 10 | extern int do_command4(int argc, char *argv[], char **table, |
Jan Engelhardt | 1639fe8 | 2011-08-27 11:39:52 +0200 | [diff] [blame^] | 11 | struct xtc_handle **handle); |
Jan Engelhardt | 7e5e866 | 2011-08-27 11:16:16 +0200 | [diff] [blame] | 12 | extern int delete_chain4(const xt_chainlabel chain, int verbose, |
Jan Engelhardt | 1639fe8 | 2011-08-27 11:39:52 +0200 | [diff] [blame^] | 13 | struct xtc_handle *handle); |
Jan Engelhardt | 7e5e866 | 2011-08-27 11:16:16 +0200 | [diff] [blame] | 14 | extern int flush_entries4(const xt_chainlabel chain, int verbose, |
Jan Engelhardt | 1639fe8 | 2011-08-27 11:39:52 +0200 | [diff] [blame^] | 15 | struct xtc_handle *handle); |
| 16 | extern int for_each_chain4(int (*fn)(const xt_chainlabel, int, struct xtc_handle *), |
| 17 | int verbose, int builtinstoo, struct xtc_handle *handle); |
Maciej Zenczykowski | bb9fe80 | 2011-04-04 15:37:13 +0200 | [diff] [blame] | 18 | extern void print_rule4(const struct ipt_entry *e, |
Jan Engelhardt | 1639fe8 | 2011-08-27 11:39:52 +0200 | [diff] [blame^] | 19 | struct xtc_handle *handle, const char *chain, int counters); |
Phil Oester | 8cf6591 | 2005-09-19 15:00:33 +0000 | [diff] [blame] | 20 | |
Jamal Hadi Salim | 617d3d1 | 2009-02-11 16:28:31 -0500 | [diff] [blame] | 21 | extern struct xtables_globals iptables_globals; |
| 22 | |
Marc Boucher | e6869a8 | 2000-03-20 06:03:29 +0000 | [diff] [blame] | 23 | #endif /*_IPTABLES_USER_H*/ |