Skip to contentSkip to conversation

make netfilter's ipt_TCPMSS compile again

PATCH In review Stelian Pop 2 participants 2 messages Oct 30, 2002 – Nov 2, 2002

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

PATCH 1/1 make netfilter's ipt_TCPMSS compile again

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 =====

net/ipv4/netfilter/ipt_TCPMSS.c +3 -3
@@ -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;
 
Signature · 2 lines
Stelian Pop <[email protected]>
Alcove - http://www.alcove.com
#1 lore raw
Quoted 4 lines · Stelian Pop

Hi,

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

thanks, I will submit a fix for kernel inclusion.

Quoted 1 line

Stelian.

Signature · 5 lines
Live long and prosper
- Harald Welte / [email protected]               http://www.gnumonks.org/
============================================================================
"If this were a dictatorship, it'd be a heck of a lot easier, just so long
 as I'm the dictator."  --  George W. Bush Dec 18, 2000