make netfilter's ipt_TCPMSS compile again
Subsystems (2)
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
Quoted 4 lines · Stelian Pop
Hi,
The attached patch is required to make
ipt_TCPMSS.ccompile 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