mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2.5.bk] make netfilter's ipt_TCPMSS compile again
@ 2002-10-30 14:15 Stelian Pop
  2002-11-02 14:25 ` Harald Welte
  0 siblings, 1 reply; 2+ messages in thread
From: Stelian Pop @ 2002-10-30 14:15 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: netfilter-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 2.5.bk] make netfilter's ipt_TCPMSS compile again
  2002-10-30 14:15 [PATCH 2.5.bk] make netfilter's ipt_TCPMSS compile again Stelian Pop
@ 2002-11-02 14:25 ` Harald Welte
  0 siblings, 0 replies; 2+ messages in thread
From: Harald Welte @ 2002-11-02 14:25 UTC (permalink / raw)
  To: Stelian Pop, Linux Kernel Mailing List, netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 555 bytes --]

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 / laforge@gnumonks.org               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

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-02 14:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-30 14:15 [PATCH 2.5.bk] make netfilter's ipt_TCPMSS compile again Stelian Pop
2002-11-02 14:25 ` Harald Welte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®