public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6.14] ipt_TARPIT vs sysctl_ip_default_ttl.
@ 2005-11-02 16:54 Paweł Sikora
  0 siblings, 0 replies; only message in thread
From: Paweł Sikora @ 2005-11-02 16:54 UTC (permalink / raw)
  To: linux-kernel; +Cc: netfilter-devel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-11-02 16:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-02 16:54 [2.6.14] ipt_TARPIT vs sysctl_ip_default_ttl Paweł Sikora

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox