diff options
author | 2012-06-20 20:52:31 +0200 | |
---|---|---|
committer | 2012-06-22 02:49:52 +0200 | |
commit | d584a61a931e6cbfef0dd811c4ae0250ec5987f4 (patch) | |
tree | af8f5ff1ace6bc0034f5f351bca12d09e9c5f42e /net/netfilter/core.c | |
parent | netfilter: nfq_ct_hook needs __rcu and __read_mostly (diff) | |
download | linux-d584a61a931e6cbfef0dd811c4ae0250ec5987f4.tar.gz linux-d584a61a931e6cbfef0dd811c4ae0250ec5987f4.tar.bz2 linux-d584a61a931e6cbfef0dd811c4ae0250ec5987f4.zip |
netfilter: nfnetlink_queue: fix compilation with CONFIG_NF_NAT=m and CONFIG_NF_CT_NETLINK=y
LD init/built-in.o
net/built-in.o:(.data+0x4408): undefined reference to `nf_nat_tcp_seq_adjust'
make: *** [vmlinux] Error 1
This patch adds a new pointer hook (nfq_ct_nat_hook) similar to other existing
in Netfilter to solve our complicated configuration dependencies.
Reported-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/core.c')
-rw-r--r-- | net/netfilter/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/netfilter/core.c b/net/netfilter/core.c index 4cd10ed2d6e6..0bc6b60db4df 100644 --- a/net/netfilter/core.c +++ b/net/netfilter/core.c @@ -268,6 +268,9 @@ EXPORT_SYMBOL(nf_conntrack_destroy); struct nfq_ct_hook __rcu *nfq_ct_hook __read_mostly; EXPORT_SYMBOL_GPL(nfq_ct_hook); +struct nfq_ct_nat_hook __rcu *nfq_ct_nat_hook __read_mostly; +EXPORT_SYMBOL_GPL(nfq_ct_nat_hook); + #endif /* CONFIG_NF_CONNTRACK */ #ifdef CONFIG_PROC_FS |