mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.5.46-bk minor fix
@ 2002-11-10 19:08 Jan-Frode Myklebust
  0 siblings, 0 replies; only message in thread
From: Jan-Frode Myklebust @ 2002-11-10 19:08 UTC (permalink / raw)
  To: linux-kernel


The current 2.5.46-bk failes to build for me. Ends up with:

 gcc -Wp,-MD,net/ipv4/netfilter/.ipt_TCPMSS.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -Iarch/i386/mach-generic -nostdinc -iwithprefix include -DMODULE   -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:95: structure has no member named
`pmtu'
 make[4]: *** [net/ipv4/netfilter/ipt_TCPMSS.o] Error 1
 make[3]: *** [net/ipv4/netfilter] Error 2
 make[2]: *** [net/ipv4] Error 2
 make[1]: *** [net] Error 2
 make: *** [modules] Error 2


The following patch seemingly fixes it, but I don't know if it's correct:


===== net/ipv4/netfilter/ipt_TCPMSS.c 1.6 vs ? (writable without lock!)  =====
--- 1.6/net/ipv4/netfilter/ipt_TCPMSS.c	Sat Nov  2 11:25:59 2002
+++ ?/net/ipv4/netfilter/ipt_TCPMSS.c	Sun Nov 10 20:04:34 2002
@@ -92,7 +92,7 @@
 			return NF_DROP; /* or IPT_CONTINUE ?? */
 		}
 
-		newmss = dst_pmtu((*pskb)->dst->pmtu) - sizeof(struct iphdr) - sizeof(struct tcphdr);
+		newmss = dst_pmtu((*pskb)->dst) - sizeof(struct iphdr) - sizeof(struct tcphdr);
 	} else
 		newmss = tcpmssinfo->mss;
 


  -jf

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-10 19:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-10 19:08 2.5.46-bk minor fix Jan-Frode Myklebust

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®