1e6869a8f59d779ff4d5a0984c86d80db7078496Marc Boucher#ifndef _IPTABLES_USER_H
2e6869a8f59d779ff4d5a0984c86d80db7078496Marc Boucher#define _IPTABLES_USER_H
3e6869a8f59d779ff4d5a0984c86d80db7078496Marc Boucher
4ef18e8147903885708d1c264904129af4fb636d6Jan Engelhardt#include <netinet/ip.h>
5ef18e8147903885708d1c264904129af4fb636d6Jan Engelhardt#include <xtables.h>
6ef18e8147903885708d1c264904129af4fb636d6Jan Engelhardt#include <libiptc/libiptc.h>
7c02e80878979d2205f3d89d05548397871e598e9Jan Engelhardt#include <iptables/internal.h>
8e6869a8f59d779ff4d5a0984c86d80db7078496Marc Boucher
9e6869a8f59d779ff4d5a0984c86d80db7078496Marc Boucher/* Your shared library should call one of these. */
10c1e04bd1b057151afaf7e6138089f2fe2c1b7d1cMaciej Zenczykowskiextern int do_command4(int argc, char *argv[], char **table,
11d7aeda5ed45ac7ca959f12180690caa371b5b14bPablo Neira Ayuso		      struct xtc_handle **handle, bool restore);
127e5e866a36a76c153e5903b8251f90cfe07a1d34Jan Engelhardtextern int delete_chain4(const xt_chainlabel chain, int verbose,
131639fe86579f86f5f6a954a9b0adde2e16ad1980Jan Engelhardt			struct xtc_handle *handle);
147e5e866a36a76c153e5903b8251f90cfe07a1d34Jan Engelhardtextern int flush_entries4(const xt_chainlabel chain, int verbose,
151639fe86579f86f5f6a954a9b0adde2e16ad1980Jan Engelhardt			struct xtc_handle *handle);
161639fe86579f86f5f6a954a9b0adde2e16ad1980Jan Engelhardtextern int for_each_chain4(int (*fn)(const xt_chainlabel, int, struct xtc_handle *),
171639fe86579f86f5f6a954a9b0adde2e16ad1980Jan Engelhardt		int verbose, int builtinstoo, struct xtc_handle *handle);
18bb9fe8059f40f0dde9c780498f5af42f5aa6a179Maciej Zenczykowskiextern void print_rule4(const struct ipt_entry *e,
191639fe86579f86f5f6a954a9b0adde2e16ad1980Jan Engelhardt		struct xtc_handle *handle, const char *chain, int counters);
208cf65913bb6353bf0e92eab0669d1c4c53b43623Phil Oester
21617d3d140f4739558dce2ef8ed01aef251cf5487Jamal Hadi Salimextern struct xtables_globals iptables_globals;
22617d3d140f4739558dce2ef8ed01aef251cf5487Jamal Hadi Salim
23e6869a8f59d779ff4d5a0984c86d80db7078496Marc Boucher#endif /*_IPTABLES_USER_H*/
24