Skip to contentSkip to conversation

ipt_TARPIT.c - dst_ptmu

PATCH Jérôme Poulin 1 participant 1 message May 10, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

I get errors about :
*** Warning: "dst_pmtu" [net/ipv4/netfilter/ipt_TARPIT.ko] undefined! when compiling the TARPIT, I replaced the dst_pmtu with dst_mtu and it now works, just a little patch to do to ipt_TARPIT.c to make it work with the new kernel I think. Using 2.6.12-rc3-mm3.

ipt_TARPIT.c renamed from ipt_TARPIT.c.old +1 -1
@@ -194,7 +194,7 @@
 	nskb->dst = &nrt->u.dst;
 
 	/* "Never happens" */
-	if (nskb->len > dst_pmtu(nskb->dst))
+	if (nskb->len > dst_mtu(nskb->dst))
 		goto free_nskb;
 
 	ip_direct_send (nskb);