diff options
author | Patrick McHardy <kaber@trash.net> | 2007-04-13 01:16:18 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:29:00 -0400 |
commit | 3b5018d6766186474366f26cc87fba81407b9089 (patch) | |
tree | a759e0146445c00441ca39a1ba50fd8e75526249 /net/ipv4 | |
parent | fe6092ea0019cbba5263a915c9ce9f2bf383209e (diff) |
[NETFILTER]: {eb,ip6,ip}t_LOG: remove remains of LOG target overloading
All LOG targets always use their internal logging function nowadays, so
remove the incorrect error message and handle real errors (!= -EEXIST)
by failing to load.
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_LOG.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/net/ipv4/netfilter/ipt_LOG.c b/net/ipv4/netfilter/ipt_LOG.c index 2fa36618c517..a42c5cd968b1 100644 --- a/net/ipv4/netfilter/ipt_LOG.c +++ b/net/ipv4/netfilter/ipt_LOG.c | |||
@@ -477,14 +477,10 @@ static int __init ipt_log_init(void) | |||
477 | ret = xt_register_target(&ipt_log_reg); | 477 | ret = xt_register_target(&ipt_log_reg); |
478 | if (ret < 0) | 478 | if (ret < 0) |
479 | return ret; | 479 | return ret; |
480 | if (nf_log_register(PF_INET, &ipt_log_logger) < 0) { | 480 | ret = nf_log_register(PF_INET, &ipt_log_logger); |
481 | printk(KERN_WARNING "ipt_LOG: not logging via system console " | 481 | if (ret < 0 && ret != -EEXIST) |
482 | "since somebody else already registered for PF_INET\n"); | 482 | xt_unregister_target(&ipt_log_reg); |
483 | /* we cannot make module load fail here, since otherwise | 483 | return ret; |
484 | * iptables userspace would abort */ | ||
485 | } | ||
486 | |||
487 | return 0; | ||
488 | } | 484 | } |
489 | 485 | ||
490 | static void __exit ipt_log_fini(void) | 486 | static void __exit ipt_log_fini(void) |