![Patrick McHardy](/assets/img/avatar_default.png)
Export the NAT definitions to userspace. So far userspace (specifically, iptables) has been copying the headers files from include/net. Also rename some structures and definitions in preparation for IPv6 NAT. Since these have never been officially exported, this doesn't affect existing userspace code. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
26 lines
587 B
C
26 lines
587 B
C
#ifndef _NETFILTER_NF_NAT_H
|
|
#define _NETFILTER_NF_NAT_H
|
|
|
|
#include <linux/netfilter.h>
|
|
#include <linux/netfilter/nf_conntrack_tuple_common.h>
|
|
|
|
#define NF_NAT_RANGE_MAP_IPS 1
|
|
#define NF_NAT_RANGE_PROTO_SPECIFIED 2
|
|
#define NF_NAT_RANGE_PROTO_RANDOM 4
|
|
#define NF_NAT_RANGE_PERSISTENT 8
|
|
|
|
struct nf_nat_ipv4_range {
|
|
unsigned int flags;
|
|
__be32 min_ip;
|
|
__be32 max_ip;
|
|
union nf_conntrack_man_proto min;
|
|
union nf_conntrack_man_proto max;
|
|
};
|
|
|
|
struct nf_nat_ipv4_multi_range_compat {
|
|
unsigned int rangesize;
|
|
struct nf_nat_ipv4_range range[1];
|
|
};
|
|
|
|
#endif /* _NETFILTER_NF_NAT_H */
|