aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-04-13 01:16:38 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:29:01 -0400
commitd3a2c3ca8e7d908824701db978b936d115aea506 (patch)
tree51a6d828e91d6f9648179a6a95ace7440f2765ce /net/netfilter
parent3b5018d6766186474366f26cc87fba81407b9089 (diff)
[NETFILTER]: nfnetlink_log: remove fallback to group 0
Don't fallback to group 0 if no instance can be found for the given group. This potentially confuses the listener and is not what the user configured. Also remove the ring buffer spamming that happens when rules are set up before the logging daemon is started. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/nfnetlink_log.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c
index d2c6aab6bb7a..e32e30e7a17c 100644
--- a/net/netfilter/nfnetlink_log.c
+++ b/net/netfilter/nfnetlink_log.c
@@ -584,12 +584,7 @@ nfulnl_log_packet(unsigned int pf,
584 584
585 inst = instance_lookup_get(li->u.ulog.group); 585 inst = instance_lookup_get(li->u.ulog.group);
586 if (!inst) 586 if (!inst)
587 inst = instance_lookup_get(0);
588 if (!inst) {
589 PRINTR("nfnetlink_log: trying to log packet, "
590 "but no instance for group %u\n", li->u.ulog.group);
591 return; 587 return;
592 }
593 588
594 plen = 0; 589 plen = 0;
595 if (prefix) 590 if (prefix)