2002-10-30 14:08:57

by Stelian Pop

[permalink] [raw]
Subject: [PATCH 2.5.bk] 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 =====
--- 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 <[email protected]>
Alcove - http://www.alcove.com


2002-11-02 14:22:05

by Harald Welte

[permalink] [raw]
Subject: Re: [PATCH 2.5.bk] make netfilter's ipt_TCPMSS compile again

On Wed, Oct 30, 2002 at 03:15:16PM +0100, Stelian Pop wrote:
> 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.

> Stelian.
--
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


Attachments:
(No filename) (540.00 B)
(No filename) (232.00 B)
Download all attachments