Skip to contentSkip to conversation

2.5.47 ipv4 netfilter compile time error

DISCUSSION Grzegorz Jaskiewicz 3 participants 5 messages Nov 11, 2002

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello !

i've discovered this error during compilation:

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[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 demand i'll include .config

now i will switch off this one, and try to compile it without netfilter. It is still impossilble to make saa7146 module too...

anyway, keep doing this good job folks.

--
Greg Iaskievitch

#1 lore raw
Quoted 11 lines · Grzegorz Jaskiewicz

Hello !

i've discovered this error during compilation:

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[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

Try this patch.

Felipe

net/ipv4/netfilter/ipt_TCPMSS.c renamed from net/ipv4/netfilter/ipt_TCPMSS.c.orig +1 -1
@@ -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;
 
#2 lore raw
Quoted 3 lines · Felipe W Damasio

Try this patch.

Felipe

Works fine, i've just done the same thing.
Thx ;]

Can somebody include this into kernel ?

--
GJ

#3 lore raw
Quoted 10 lines · Grzegorz Jaskiewicz
Quoted 3 lines · Felipe W Damasio

Try this patch.

Felipe

Works fine, i've just done the same thing. Thx ;]

Can somebody include this into kernel ?

I just sent it to rusty's trivial patch monkey...should be included in
the next release.

Felipe

#4 lore raw
In reply to Grzegorz Jaskiewicz

There was a patch for this for 2.5.45 and 2.5.46, one would think it would get fixed eventually...

Ognen

Quoted 21 lines · Grzegorz Jaskiewicz

Hello !

i've discovered this error during compilation:

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[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 demand i'll include .config

now i will switch off this one, and try to compile it without netfilter. It is still impossilble to make saa7146 module too...

anyway, keep doing this good job folks.

--
Greg Iaskievitch