1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _IPTABLES_USER_H
3 #define _IPTABLES_USER_H
5 #include <netinet/ip.h>
7 #include <libiptc/libiptc.h>
8 #include <iptables/internal.h>
10 /* Your shared library should call one of these. */
11 extern int do_command4(int argc
, char *argv
[], char **table
,
12 struct xtc_handle
**handle
, bool restore
);
13 extern int delete_chain4(const xt_chainlabel chain
, int verbose
,
14 struct xtc_handle
*handle
);
15 extern int flush_entries4(const xt_chainlabel chain
, int verbose
,
16 struct xtc_handle
*handle
);
17 extern int for_each_chain4(int (*fn
)(const xt_chainlabel
, int, struct xtc_handle
*),
18 int verbose
, int builtinstoo
, struct xtc_handle
*handle
);
19 extern void print_rule4(const struct ipt_entry
*e
,
20 struct xtc_handle
*handle
, const char *chain
, int counters
);
22 extern struct xtables_globals iptables_globals
;
24 extern struct xtables_globals xtables_globals
;
26 #endif /*_IPTABLES_USER_H*/