Skip to contentSkip to conversation

nf_log stackable loggers patch

PATCH Gregor Maier 1 participant 1 message Feb 26, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

this patch adds support for stackable loggers to nf_log.c

cu
Gregor

Signature · 3 lines
Gregor Maier                                      Lehrstuhl Informatik 8
[email protected]                              Tel: +49 89  289-18010
http://www.net.in.tum.de                                     TU Muenchen
include/linux/netfilter.h +1 -1
diff -aur linux-2.6.16-rc4.orig/include/linux/netfilter.h linux-2.6.16-rc4.yyy/include/linux/netfilter.h
@@ -157,7 +157,7 @@
 
 /* Function to register/unregister log function. */
 int nf_log_register(int pf, struct nf_logger *logger);
-int nf_log_unregister_pf(int pf);
+int nf_log_unregister_pf(int pf, struct nf_logger *logger);
 void nf_log_unregister_logger(struct nf_logger *logger);
 
 /* Calls the registered backend logging function */
net/netfilter/nf_log.c +72 -30

179 lines not on this page · raw message

net/netfilter/nfnetlink_log.c +1 -1
diff -aur linux-2.6.16-rc4.orig/net/netfilter/nfnetlink_log.c linux-2.6.16-rc4.yyy/net/netfilter/nfnetlink_log.c
@@ -808,7 +808,7 @@
 			UDEBUG("unregistering log handler for pf=%u\n", pf);
 			/* This is a bug and a feature.  We cannot unregister
 			 * other handlers, like nfnetlink_inst can */
-			nf_log_unregister_pf(pf);
+			nf_log_unregister_pf(pf, &nfulnl_logger);
 			break;
 		default:
 			ret = -EINVAL;