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