mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[NETFILTER]: x_tables: add missing try to load conntrack from match/targets
CLUSTERIP, CONNMARK, CONNSECMARK, and connbytes need ip_conntrack or layer 3 protocol module of nf_conntrack. Signed-off-by: Yasuyuki Kozakai <[email protected]> Signed-off-by: Patrick McHardy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
fe0b9294c9
commit
11078c371e
4 changed files with 48 additions and 2 deletions
|
|
@ -447,6 +447,12 @@ checkentry(const char *tablename,
|
|||
cipinfo->config = config;
|
||||
}
|
||||
|
||||
if (nf_ct_l3proto_try_module_get(target->family) < 0) {
|
||||
printk(KERN_WARNING "can't load conntrack support for "
|
||||
"proto=%d\n", target->family);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
@ -460,6 +466,8 @@ static void destroy(const struct xt_target *target, void *targinfo)
|
|||
clusterip_config_entry_put(cipinfo->config);
|
||||
|
||||
clusterip_config_put(cipinfo->config);
|
||||
|
||||
nf_ct_l3proto_module_put(target->family);
|
||||
}
|
||||
|
||||
static struct ipt_target clusterip_tgt = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue