]> git.proxmox.com Git - mirror_iproute2.git/blame - include/iptables.h
update kernel headers from 4.10 net-next
[mirror_iproute2.git] / include / iptables.h
CommitLineData
1ffd7fd2 1#ifndef _IPTABLES_USER_H
2#define _IPTABLES_USER_H
3
5cd1adba
SH
4#include <netinet/ip.h>
5#include <xtables.h>
6#include <libiptc/libiptc.h>
7#include <iptables/internal.h>
1ffd7fd2 8
9/* Your shared library should call one of these. */
5cd1adba
SH
10extern int do_command4(int argc, char *argv[], char **table,
11 struct xtc_handle **handle, bool restore);
12extern int delete_chain4(const xt_chainlabel chain, int verbose,
13 struct xtc_handle *handle);
14extern int flush_entries4(const xt_chainlabel chain, int verbose,
15 struct xtc_handle *handle);
16extern int for_each_chain4(int (*fn)(const xt_chainlabel, int, struct xtc_handle *),
17 int verbose, int builtinstoo, struct xtc_handle *handle);
18extern void print_rule4(const struct ipt_entry *e,
19 struct xtc_handle *handle, const char *chain, int counters);
1ffd7fd2 20
5cd1adba 21extern struct xtables_globals iptables_globals;
1ffd7fd2 22
5cd1adba 23extern struct xtables_globals xtables_globals;
1ffd7fd2 24
1ffd7fd2 25#endif /*_IPTABLES_USER_H*/