2017-11-25 04:21:35 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2005-01-18 07:26:23 +08:00
|
|
|
#ifndef _IPTABLES_USER_H
|
|
|
|
#define _IPTABLES_USER_H
|
|
|
|
|
2016-01-04 07:14:27 +08:00
|
|
|
#include <netinet/ip.h>
|
|
|
|
#include <xtables.h>
|
|
|
|
#include <libiptc/libiptc.h>
|
|
|
|
#include <iptables/internal.h>
|
2005-01-18 07:26:23 +08:00
|
|
|
|
|
|
|
/* Your shared library should call one of these. */
|
2016-01-04 07:14:27 +08:00
|
|
|
extern int do_command4(int argc, char *argv[], char **table,
|
|
|
|
struct xtc_handle **handle, bool restore);
|
|
|
|
extern int delete_chain4(const xt_chainlabel chain, int verbose,
|
|
|
|
struct xtc_handle *handle);
|
2021-04-28 02:55:53 +08:00
|
|
|
extern int flush_entries4(const xt_chainlabel chain, int verbose,
|
2016-01-04 07:14:27 +08:00
|
|
|
struct xtc_handle *handle);
|
|
|
|
extern int for_each_chain4(int (*fn)(const xt_chainlabel, int, struct xtc_handle *),
|
|
|
|
int verbose, int builtinstoo, struct xtc_handle *handle);
|
|
|
|
extern void print_rule4(const struct ipt_entry *e,
|
|
|
|
struct xtc_handle *handle, const char *chain, int counters);
|
2005-01-18 07:26:23 +08:00
|
|
|
|
2016-01-04 07:14:27 +08:00
|
|
|
extern struct xtables_globals iptables_globals;
|
2005-01-18 07:26:23 +08:00
|
|
|
|
2016-01-04 07:14:27 +08:00
|
|
|
extern struct xtables_globals xtables_globals;
|
2005-01-18 07:26:23 +08:00
|
|
|
|
|
|
|
#endif /*_IPTABLES_USER_H*/
|