From: Loic Jaquemet <ljaquemet@gatwick.westerngeco.slb.com>
To: netfilter-devel@lists.netfilter.org
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: Patch?: linux-2.5.45/net/ipv4/netfilter dst.pmtu compilation fixes
Date: Fri, 01 Nov 2002 14:34:40 +0000 [thread overview]
Message-ID: <3DC29100.FDA579A5@gatwick.westerngeco.slb.com> (raw)
also see
http://marc.theaimsgroup.com/?l=linux-kernel&m=103614599321384&w=1
linux-2.5.45 appears to have replaced dst_entry.pmtu with
dst_entry.metrics[RTAX_PMTU] and created a helper function
dst_pmtu(struct dst_entry*), presumably to simplify future changes
like this one. Now the
files compile. That is as much as I have tested.
I am not currently familiar with this code, so I could easily
have misunderstood something in this patch.
--- linux-2.5.45.orig/net/ipv4/netfilter/ipt_TCPMSS.c 2002-10-31
01:42:56.000000000 +0100
+++ linux-2.5.45/net/ipv4/netfilter/ipt_TCPMSS.c 2002-11-01
15:18:12.000000000 +0100
@@ -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;
--
+----------------------------------------------+
|Jaquemet Loic |
|Intern in WesternGeco, Schlumberger in Gatwick|
|Phone: 44-(0)1293-55-6876 |
|Eleve ingenieur en informatique FIIFO, ORSAY |
+----------------------------------------------+
http://sourceforge.net/projects/ffss/
#wirelessfr @ irc.freenode.net
next reply other threads:[~2002-11-01 14:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-01 14:34 Loic Jaquemet [this message]
2002-11-02 14:25 ` Harald Welte
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=3DC29100.FDA579A5@gatwick.westerngeco.slb.com \
--to=ljaquemet@gatwick.westerngeco.slb.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netfilter-devel@lists.netfilter.org \
/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 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®