-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netfilter: nf_nat: export NAT definitions to userspace
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>
- Loading branch information
Patrick McHardy
authored and
Pablo Neira Ayuso
committed
Dec 23, 2011
1 parent
3d058d7
commit cbc9f2f
Showing
29 changed files
with
185 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#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 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,3 @@ header-y += ipt_ah.h | |
header-y += ipt_ecn.h | ||
header-y += ipt_realm.h | ||
header-y += ipt_ttl.h | ||
header-y += nf_nat.h |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.