Skip to content

Commit 2567c4e

Browse files
committed
netfilter: nf_conntrack: restore nf_conntrack_htable_size as exported symbol
This is required to iterate over the hash table in cttimeout, ctnetlink and nf_conntrack_ipv4. >> ERROR: "nf_conntrack_htable_size" [net/netfilter/nfnetlink_cttimeout.ko] undefined! ERROR: "nf_conntrack_htable_size" [net/netfilter/nf_conntrack_netlink.ko] undefined! ERROR: "nf_conntrack_htable_size" [net/ipv4/netfilter/nf_conntrack_ipv4.ko] undefined! Fixes: adf0516 ("netfilter: remove ip_conntrack* sysctl compat code") Reported-by: kbuild test robot <[email protected]> Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 92e47ba commit 2567c4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/netfilter/nf_conntrack_core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ static void nf_conntrack_all_unlock(void)
160160
}
161161

162162
unsigned int nf_conntrack_htable_size __read_mostly;
163+
EXPORT_SYMBOL_GPL(nf_conntrack_htable_size);
164+
163165
unsigned int nf_conntrack_max __read_mostly;
164166
seqcount_t nf_conntrack_generation __read_mostly;
165167

0 commit comments

Comments
 (0)