All of lore.kernel.org
 help / color / mirror / Atom feed
From: David T Hollis <dhollis@davehollis.com>
To: Miquel van Smoorenburg <miquels@cistron.nl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Linux v2.5.46
Date: Mon, 04 Nov 2002 19:05:05 -0500	[thread overview]
Message-ID: <3DC70B31.5090604@davehollis.com> (raw)
In-Reply-To: aq71ie$vce$1@ncc1701.cistron.net

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

Miquel van Smoorenburg wrote:

>In article <Pine.LNX.4.44.0211041508020.1832-100000@penguin.transmeta.com>,
>Linus Torvalds  <torvalds@transmeta.com> wrote:
>  
>
>>Ok, our dear master.kernel.org seems to be back from the dead, which means 
>>that I can punish it some more and upload stuff to it again. 
>>    
>>
>
>Netfilter compilation fails:
>
>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
>
>Fortunately, reconfiguring the kernel halfway the compilation
>(turn of TCP MSS netfilter options) and resuming the compile
>actually works.
>
>Mike.
>
>-
>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/
>  
>
There was a smattering of pmtu probs with 2.5.45 due to the use of a new 
function (dst_pmtu).  Here's a patch from 2.5.45 that will probably 
apply cleanly (haven't gotten the 2.5.46 patch yet myself) that should 
take care of it.


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

  reply	other threads:[~2002-11-04 23:59 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-04 23:13 Linux v2.5.46 Linus Torvalds
2002-11-04 23:44 ` Udo A. Steinberg
2002-11-05 11:50   ` [patch] " Gerd Knorr
2002-11-04 23:58 ` Miquel van Smoorenburg
2002-11-05  0:05   ` David T Hollis [this message]
2002-11-05  0:10 ` Adrian Bunk
2002-11-05  0:40   ` george anzinger
2002-11-05  0:43 ` Davide Libenzi
2002-11-05  1:15   ` george anzinger
2002-11-05  1:30     ` Davide Libenzi
2002-11-05  2:37     ` Kai Germaschewski
2002-11-05  4:01       ` Skip Ford
2002-11-05  4:17         ` Davide Libenzi
2002-11-05  4:12           ` Skip Ford
2002-11-05 15:58         ` Kai Germaschewski
2002-11-05  6:30       ` David S. Miller
2002-11-05  9:35         ` Linux v2.5.46 (compile error) Michael Kummer
2002-11-05  9:38           ` Linux v2.5.46 (compile error) (rivafb) Michael Kummer
2002-11-09  1:07             ` James Simmons
2002-11-05 11:09           ` Linux v2.5.46 (compile error) Alan Cox
2002-11-05 16:02         ` Linux v2.5.46 Kai Germaschewski
2002-11-05 16:08           ` Linus Torvalds
2002-11-05 17:25             ` Alan Cox
2002-11-05 16:59           ` David S. Miller
2002-11-06 21:22 ` Robert Love

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3DC70B31.5090604@davehollis.com \
    --to=dhollis@davehollis.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miquels@cistron.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.