mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 09:31:14 +00:00
[NETFILTER]: nf_nat: add symbolic dependency on IPv4 conntrack
Loading nf_nat causes the conntrack core to be loaded, but we need IPv4 as well. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ff4ca8273e
commit
591e620693
3 changed files with 9 additions and 1 deletions
|
@ -21,4 +21,6 @@ extern struct nf_conntrack_l4proto nf_conntrack_l4proto_icmp;
|
||||||
extern int nf_conntrack_ipv4_compat_init(void);
|
extern int nf_conntrack_ipv4_compat_init(void);
|
||||||
extern void nf_conntrack_ipv4_compat_fini(void);
|
extern void nf_conntrack_ipv4_compat_fini(void);
|
||||||
|
|
||||||
|
extern void need_ipv4_conntrack(void);
|
||||||
|
|
||||||
#endif /*_NF_CONNTRACK_IPV4_H*/
|
#endif /*_NF_CONNTRACK_IPV4_H*/
|
||||||
|
|
|
@ -509,3 +509,9 @@ static void __exit nf_conntrack_l3proto_ipv4_fini(void)
|
||||||
|
|
||||||
module_init(nf_conntrack_l3proto_ipv4_init);
|
module_init(nf_conntrack_l3proto_ipv4_init);
|
||||||
module_exit(nf_conntrack_l3proto_ipv4_fini);
|
module_exit(nf_conntrack_l3proto_ipv4_fini);
|
||||||
|
|
||||||
|
void need_ipv4_conntrack(void)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(need_ipv4_conntrack);
|
||||||
|
|
|
@ -328,7 +328,7 @@ static int __init nf_nat_standalone_init(void)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
need_conntrack();
|
need_ipv4_conntrack();
|
||||||
|
|
||||||
#ifdef CONFIG_XFRM
|
#ifdef CONFIG_XFRM
|
||||||
BUG_ON(ip_nat_decode_session != NULL);
|
BUG_ON(ip_nat_decode_session != NULL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue