net[shemminger]!shemminger | 1ffd7fd | 2005-01-17 23:26:23 +0000 | [diff] [blame] | 1 | #ifndef _IPTABLES_USER_H |
| 2 | #define _IPTABLES_USER_H |
| 3 | |
Stephen Hemminger | 5cd1adb | 2016-01-03 15:14:27 -0800 | [diff] [blame] | 4 | #include <netinet/ip.h> |
| 5 | #include <xtables.h> |
| 6 | #include <libiptc/libiptc.h> |
| 7 | #include <iptables/internal.h> |
net[shemminger]!shemminger | 1ffd7fd | 2005-01-17 23:26:23 +0000 | [diff] [blame] | 8 | |
| 9 | /* Your shared library should call one of these. */ |
Stephen Hemminger | 5cd1adb | 2016-01-03 15:14:27 -0800 | [diff] [blame] | 10 | extern int do_command4(int argc, char *argv[], char **table, |
| 11 | struct xtc_handle **handle, bool restore); |
| 12 | extern int delete_chain4(const xt_chainlabel chain, int verbose, |
| 13 | struct xtc_handle *handle); |
| 14 | extern int flush_entries4(const xt_chainlabel chain, int verbose, |
| 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); |
| 18 | extern void print_rule4(const struct ipt_entry *e, |
| 19 | struct xtc_handle *handle, const char *chain, int counters); |
net[shemminger]!shemminger | 1ffd7fd | 2005-01-17 23:26:23 +0000 | [diff] [blame] | 20 | |
Stephen Hemminger | 5cd1adb | 2016-01-03 15:14:27 -0800 | [diff] [blame] | 21 | extern struct xtables_globals iptables_globals; |
net[shemminger]!shemminger | 1ffd7fd | 2005-01-17 23:26:23 +0000 | [diff] [blame] | 22 | |
Stephen Hemminger | 5cd1adb | 2016-01-03 15:14:27 -0800 | [diff] [blame] | 23 | extern struct xtables_globals xtables_globals; |
net[shemminger]!shemminger | 1ffd7fd | 2005-01-17 23:26:23 +0000 | [diff] [blame] | 24 | |
net[shemminger]!shemminger | 1ffd7fd | 2005-01-17 23:26:23 +0000 | [diff] [blame] | 25 | #endif /*_IPTABLES_USER_H*/ |