]> git.proxmox.com Git - mirror_iproute2.git/blob - include/iptables.h
Merge branch 'iproute2-master' into iproute2-next
[mirror_iproute2.git] / include / iptables.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _IPTABLES_USER_H
3 #define _IPTABLES_USER_H
4
5 #include <netinet/ip.h>
6 #include <xtables.h>
7 #include <libiptc/libiptc.h>
8 #include <iptables/internal.h>
9
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);
21
22 extern struct xtables_globals iptables_globals;
23
24 extern struct xtables_globals xtables_globals;
25
26 #endif /*_IPTABLES_USER_H*/