diff options
author | Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp> | 2006-12-12 03:29:02 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-13 19:48:21 -0500 |
commit | 11078c371e2ecfce011d1dffb67888c6fed1b664 (patch) | |
tree | 7e45dea57e53396a3fa80e2c2f6901dab608fb0b /net/ipv4 | |
parent | fe0b9294c9f951a64c768f8a5879154235efe63f (diff) |
[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 <yasuyuki.kozakai@toshiba.co.jp>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/ipt_CLUSTERIP.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/ipv4/netfilter/ipt_CLUSTERIP.c b/net/ipv4/netfilter/ipt_CLUSTERIP.c index fef56ae61abe..b1c11160b9de 100644 --- a/net/ipv4/netfilter/ipt_CLUSTERIP.c +++ b/net/ipv4/netfilter/ipt_CLUSTERIP.c | |||
@@ -447,6 +447,12 @@ checkentry(const char *tablename, | |||
447 | cipinfo->config = config; | 447 | cipinfo->config = config; |
448 | } | 448 | } |
449 | 449 | ||
450 | if (nf_ct_l3proto_try_module_get(target->family) < 0) { | ||
451 | printk(KERN_WARNING "can't load conntrack support for " | ||
452 | "proto=%d\n", target->family); | ||
453 | return 0; | ||
454 | } | ||
455 | |||
450 | return 1; | 456 | return 1; |
451 | } | 457 | } |
452 | 458 | ||
@@ -460,6 +466,8 @@ static void destroy(const struct xt_target *target, void *targinfo) | |||
460 | clusterip_config_entry_put(cipinfo->config); | 466 | clusterip_config_entry_put(cipinfo->config); |
461 | 467 | ||
462 | clusterip_config_put(cipinfo->config); | 468 | clusterip_config_put(cipinfo->config); |
469 | |||
470 | nf_ct_l3proto_module_put(target->family); | ||
463 | } | 471 | } |
464 | 472 | ||
465 | static struct ipt_target clusterip_tgt = { | 473 | static struct ipt_target clusterip_tgt = { |