Browse Source

[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>
Patrick McHardy 18 years ago
parent
commit
d3a2c3ca8e
1 changed files with 0 additions and 5 deletions
  1. 0 5
      net/netfilter/nfnetlink_log.c

+ 0 - 5
net/netfilter/nfnetlink_log.c

@@ -584,12 +584,7 @@ nfulnl_log_packet(unsigned int pf,
 
 
 	inst = instance_lookup_get(li->u.ulog.group);
 	inst = instance_lookup_get(li->u.ulog.group);
 	if (!inst)
 	if (!inst)
-		inst = instance_lookup_get(0);
-	if (!inst) {
-		PRINTR("nfnetlink_log: trying to log packet, "
-			"but no instance for group %u\n", li->u.ulog.group);
 		return;
 		return;
-	}
 
 
 	plen = 0;
 	plen = 0;
 	if (prefix)
 	if (prefix)