netfilter: export NAT definitions through linux/netfilter_ipv4/nf_nat.h
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 1 Oct 2011 17:51:29 +0000 (13:51 -0400)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 1 Nov 2011 08:19:52 +0000 (09:19 +0100)
commit8d83f63b19d45ba0898b97824afcc8e0b5c954cb
treeaf5a9d67a06321c324d2c7a043c49cc487091b9b
parent0a9ee81349d90c6c85831f38118bf569c60a4d51
netfilter: export NAT definitions through linux/netfilter_ipv4/nf_nat.h

This patch exports several definitions that used to live under
include/net/netfilter/nf_nat.h. These definitions, although not
exported, have been used by iptables and other userspace
applications like miniupnpd since long time. Basically, these
userspace tools included some internal definition of the required
structures and they assume no changes in the binary representation
(which is OK indeed).

To resolve this situation, this patch makes public the required
structure and install them in INSTALL_HDR_PATH.

See: https://bugs.gentoo.org/376873, for more information.

This patch is heavily based on the initial patch sent by:

Anthony G. Basile <blueness@gentoo.org>

Which was entitled:

netfilter: export sanitized nf_nat.h to INSTALL_HDR_PATH

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter_ipv4/Kbuild
include/linux/netfilter_ipv4/nf_nat.h [new file with mode: 0644]
include/net/netfilter/nf_conntrack_tuple.h
include/net/netfilter/nf_nat.h