Skip to contentSkip to conversation

[2.6.14] ipt_TARPIT vs sysctl_ip_default_ttl.

PATCH Paweł Sikora 1 participant 1 message Nov 2, 2005

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

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.

net/ipv4/ip_output.c renamed from net/ipv4/ip_output.c.orig +1 -0
@@ -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);
Signature · 3 lines
The only thing necessary for the triumph of evil
  is for good men to do nothing.
                                           - Edmund Burke