public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.5.45 ipt_TCPMSS.c syntax error
@ 2002-11-01  1:27 Dieter Nützel
  2002-11-01  1:59 ` David T Hollis
  0 siblings, 1 reply; 2+ messages in thread
From: Dieter Nützel @ 2002-11-01  1:27 UTC (permalink / raw)
  To: Skip Ford; +Cc: Linux Kernel List

make -f scripts/Makefile.build obj=sound/core/seq/oss
  gcc -Wp,-MD,net/ipv4/netfilter/.ipt_TCPMSS.o.d -D__KERNEL__ -Iinclude -Wall 
-Wstrict-prototypes -Wno-trigraphs -O -fomit-frame-pointer 
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -mcpu=k6 
-march=i686 -malign-functions=4 -fschedule-insns2 -fexpensive-optimizations 
-Iarch/i386/mach-generic -nostdinc -iwithprefix include -DMODULE -include 
include/linux/modversions.h   -DKBUILD_BASENAME=ipt_TCPMSS   -c -o 
net/ipv4/netfilter/ipt_TCPMSS.o net/ipv4/netfilter/ipt_TCPMSS.c
net/ipv4/netfilter/ipt_TCPMSS.c: In function `ipt_tcpmss_target':
net/ipv4/netfilter/ipt_TCPMSS.c:88: structure has no member named `pmtu'
net/ipv4/netfilter/ipt_TCPMSS.c:91: structure has no member named `pmtu'
net/ipv4/netfilter/ipt_TCPMSS.c:95: structure has no member named `pmtu'
make[3]: *** [net/ipv4/netfilter/ipt_TCPMSS.o] Error 1
make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2

On x86 (Athlon)

-Dieter

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

* Re: 2.5.45 ipt_TCPMSS.c syntax error
  2002-11-01  1:27 2.5.45 ipt_TCPMSS.c syntax error Dieter Nützel
@ 2002-11-01  1:59 ` David T Hollis
  0 siblings, 0 replies; 2+ messages in thread
From: David T Hollis @ 2002-11-01  1:59 UTC (permalink / raw)
  To: Dieter Nützel; +Cc: Skip Ford, Linux Kernel List

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

Dieter Nützel wrote:

>make -f scripts/Makefile.build obj=sound/core/seq/oss
>  gcc -Wp,-MD,net/ipv4/netfilter/.ipt_TCPMSS.o.d -D__KERNEL__ -Iinclude -Wall 
>-Wstrict-prototypes -Wno-trigraphs -O -fomit-frame-pointer 
>-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -mcpu=k6 
>-march=i686 -malign-functions=4 -fschedule-insns2 -fexpensive-optimizations 
>-Iarch/i386/mach-generic -nostdinc -iwithprefix include -DMODULE -include 
>include/linux/modversions.h   -DKBUILD_BASENAME=ipt_TCPMSS   -c -o 
>net/ipv4/netfilter/ipt_TCPMSS.o net/ipv4/netfilter/ipt_TCPMSS.c
>net/ipv4/netfilter/ipt_TCPMSS.c: In function `ipt_tcpmss_target':
>net/ipv4/netfilter/ipt_TCPMSS.c:88: structure has no member named `pmtu'
>net/ipv4/netfilter/ipt_TCPMSS.c:91: structure has no member named `pmtu'
>net/ipv4/netfilter/ipt_TCPMSS.c:95: structure has no member named `pmtu'
>make[3]: *** [net/ipv4/netfilter/ipt_TCPMSS.o] Error 1
>make[2]: *** [net/ipv4/netfilter] Error 2
>make[1]: *** [net/ipv4] Error 2
>make: *** [net] Error 2
>
>On x86 (Athlon)
>
>-Dieter
>-
>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/
>  
>
I sent up a patch on that yesterday:



[-- Attachment #2: linux-2.4.45-ipt_TCPMSS.patch --]
[-- Type: text/plain, Size: 1113 bytes --]

--- net/ipv4/netfilter/ipt_TCPMSS.c.orig	2002-10-30 22:59:53.000000000 -0500
+++ net/ipv4/netfilter/ipt_TCPMSS.c	2002-10-30 23:08:58.000000000 -0500
@@ -48,6 +48,7 @@
 	u_int16_t tcplen, newtotlen, oldval, newmss;
 	unsigned int i;
 	u_int8_t *opt;
+	struct rtable *rt;
 
 	/* raw socket (tcpdump) may have clone of incoming skb: don't
 	   disturb it --RR */
@@ -85,14 +86,16 @@
 			return NF_DROP; /* or IPT_CONTINUE ?? */
 		}
 
-		if((*pskb)->dst->pmtu <= (sizeof(struct iphdr) + sizeof(struct tcphdr))) {
+		rt = (struct rtable *)(*pskb)->dst;
+
+		if(dst_pmtu(&rt->u.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(&rt->u.dst));
 			return NF_DROP; /* or IPT_CONTINUE ?? */
 		}
 
-		newmss = (*pskb)->dst->pmtu - sizeof(struct iphdr) - sizeof(struct tcphdr);
+		newmss = dst_pmtu(&rt->u.dst) - sizeof(struct iphdr) - sizeof(struct tcphdr);
 	} else
 		newmss = tcpmssinfo->mss;
 

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

end of thread, other threads:[~2002-11-01  1:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-01  1:27 2.5.45 ipt_TCPMSS.c syntax error Dieter Nützel
2002-11-01  1:59 ` David T Hollis

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