[PATCH 2.5.bk] make netfilter's ipt_TCPMSS compile again

From: Stelian Pop (stelian.pop@fr.alcove.com)
Date: Wed Oct 30 2002 - 09:15:16 EST


Hi,

The attached patch is required to make ipt_TCPMSS.c compile again,
due to the pmtu changes.

Stelian.

===== net/ipv4/netfilter/ipt_TCPMSS.c 1.5 vs edited =====
--- 1.5/net/ipv4/netfilter/ipt_TCPMSS.c Tue Feb 5 16:23:43 2002
+++ edited/net/ipv4/netfilter/ipt_TCPMSS.c Wed Oct 30 13:01:44 2002
@@ -85,14 +85,14 @@
                         return NF_DROP; /* or IPT_CONTINUE ?? */
                 }
 
- if((*pskb)->dst->pmtu <= (sizeof(struct iphdr) + sizeof(struct tcphdr))) {
+ if(dst_pmtu((*pskb)->dst) <= (sizeof(struct iphdr) + sizeof(struct tcphdr))) {
                         if (net_ratelimit())
                                 printk(KERN_ERR
- "ipt_tcpmss_target: unknown or invalid path-MTU (%d)\n", (*pskb)->dst->pmtu);
+ "ipt_tcpmss_target: unknown or invalid path-MTU (%d)\n", dst_pmtu((*pskb)->dst));
                         return NF_DROP; /* or IPT_CONTINUE ?? */
                 }
 
- newmss = (*pskb)->dst->pmtu - sizeof(struct iphdr) - sizeof(struct tcphdr);
+ newmss = dst_pmtu((*pskb)->dst) - sizeof(struct iphdr) - sizeof(struct tcphdr);
         } else
                 newmss = tcpmssinfo->mss;
 

-- 
Stelian Pop <stelian.pop@fr.alcove.com>
Alcove - http://www.alcove.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Oct 31 2002 - 22:00:47 EST