]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0486506bd3d2eb4c334897cff8d7bea9c7d2b7ca
treeaf5a9d67a06321c324d2c7a043c49cc487091b9b
parent3db29bd75fd809e19672439ae88b8ec7013e698c
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