aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-04-13 01:16:18 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:29:00 -0400
commit3b5018d6766186474366f26cc87fba81407b9089 (patch)
treea759e0146445c00441ca39a1ba50fd8e75526249 /net/bridge
parentfe6092ea0019cbba5263a915c9ce9f2bf383209e (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/bridge')
-rw-r--r--net/bridge/netfilter/ebt_log.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/net/bridge/netfilter/ebt_log.c b/net/bridge/netfilter/ebt_log.c
index 45712aec6a0e..031bfa4a51fc 100644
--- a/net/bridge/netfilter/ebt_log.c
+++ b/net/bridge/netfilter/ebt_log.c
@@ -196,14 +196,10 @@ static int __init ebt_log_init(void)
196 ret = ebt_register_watcher(&log); 196 ret = ebt_register_watcher(&log);
197 if (ret < 0) 197 if (ret < 0)
198 return ret; 198 return ret;
199 if (nf_log_register(PF_BRIDGE, &ebt_log_logger) < 0) { 199 ret = nf_log_register(PF_BRIDGE, &ebt_log_logger);
200 printk(KERN_WARNING "ebt_log: not logging via system console " 200 if (ret < 0 && ret != -EEXIST)
201 "since somebody else already registered for PF_INET\n"); 201 ebt_unregister_watcher(&log);
202 /* we cannot make module load fail here, since otherwise 202 return ret;
203 * ebtables userspace would abort */
204 }
205
206 return 0;
207} 203}
208 204
209static void __exit ebt_log_fini(void) 205static void __exit ebt_log_fini(void)