blob: 11d95fe57e8c3d93e1dbe74ab64ed5a57a0d14ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef IPTABLES_XSHARED_H
#define IPTABLES_XSHARED_H 1
#include <stdint.h>
#include <linux/netfilter_ipv4/ip_tables.h>
#include <linux/netfilter_ipv6/ip6_tables.h>
struct xtables_rule_match;
struct xtables_target;
struct iptables_command_state {
union {
struct ipt_entry fw;
struct ip6t_entry fw6;
};
int invert;
int c;
unsigned int options;
struct xtables_rule_match *matches;
struct xtables_target *target;
char *protocol;
int proto_used;
char **argv;
};
enum {
XT_OPTION_OFFSET_SCALE = 256,
};
extern void print_extension_helps(const struct xtables_target *,
const struct xtables_rule_match *);
extern const char *proto_to_name(uint8_t, int);
extern struct xtables_match *find_proto(const char *, enum xtables_tryload,
int, struct xtables_rule_match **);
#endif /* IPTABLES_XSHARED_H */
|