[tproxy] Some patch for libipt_TPROXY.c

Jan Engelhardt jengelh at linux01.gwdg.de
Wed Nov 8 08:51:12 CET 2006


I put it short,

Index: iptables-1.3.6/extensions/libipt_TPROXY.c
===================================================================
--- iptables-1.3.6.orig/extensions/libipt_TPROXY.c
+++ iptables-1.3.6/extensions/libipt_TPROXY.c
@@ -131,7 +131,7 @@ static struct iptables_target tproxy = {
     .extra_opts    = opts,
 };
 
-static void _init(void)
+static __attribute__((constructor)) void _init(void)
 {
 	register_target(&tproxy);
 }
Index: iptables-1.3.6/extensions/libipt_tproxy.c
===================================================================
--- iptables-1.3.6.orig/extensions/libipt_tproxy.c
+++ iptables-1.3.6/extensions/libipt_tproxy.c
@@ -69,7 +69,7 @@ static struct iptables_match tproxy = {
     .extra_opts    = opts,
 };
 
-void _init(void)
+static __attribute__((constructor)) void _init(void)
 {
 	register_match(&tproxy);
 }
#<EOF>

	-`J'
-- 


More information about the tproxy mailing list