[2.6.14] ipt_TARPIT vs sysctl_ip_default_ttl.

From: PaweÅ Sikora
Date: Wed Nov 02 2005 - 11:54:43 EST


Hi,

The ipt_TARPIT module uses sysctl_ip_default_ttl
variable but kernel doesn't export this symbol.

ipt_TARPIT.c:
(...)
/* Adjust IP TTL */
#ifdef CONFIG_SYSCTL
nskb->nh.iph->ttl = sysctl_ip_default_ttl;
#else
nskb->nh.iph->ttl = IPDEFTTL;
#endif
(...)

Finally we get undefined symbol in TARPIT module.

--- linux-2.6.14/net/ipv4/ip_output.c.orig
+++ linux-2.6.14/net/ipv4/ip_output.c
@@ -1329,3 +1329,4 @@
EXPORT_SYMBOL(ip_generic_getfrag);
EXPORT_SYMBOL(ip_queue_xmit);
EXPORT_SYMBOL(ip_send_check);
+EXPORT_SYMBOL(sysctl_ip_default_ttl);

--
The only thing necessary for the triumph of evil
is for good men to do nothing.
- Edmund Burke
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/