netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [ROUTE] PMTU only works on half the time
@ 2003-12-01 20:16 Herbert Xu
  2003-12-01 20:47 ` Herbert Xu
  0 siblings, 1 reply; 23+ messages in thread
From: Herbert Xu @ 2003-12-01 20:16 UTC (permalink / raw)
  To: David S. Miller, netdev

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

Hi Dave:

I found out that PMTU only works on those routing cache entries where
rt_src != 0.  This patch should make it work for all matching entries.

Cheers,
-- 
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

[-- Attachment #2: p --]
[-- Type: text/plain, Size: 806 bytes --]

Index: kernel-source-2.5/net/ipv4/route.c
===================================================================
RCS file: /home/gondolin/herbert/src/CVS/debian/kernel-source-2.5/net/ipv4/route.c,v
retrieving revision 1.3
diff -u -r1.3 route.c
--- kernel-source-2.5/net/ipv4/route.c	24 Nov 2003 09:52:04 -0000	1.3
+++ kernel-source-2.5/net/ipv4/route.c	1 Dec 2003 20:15:40 -0000
@@ -1259,9 +1259,9 @@
 		     rth = rth->u.rt_next) {
 			smp_read_barrier_depends();
 			if (rth->fl.fl4_dst == daddr &&
-			    rth->fl.fl4_src == skeys[i] &&
+			    (rth->fl.fl4_src == iph->saddr ||
+			     rth->rt_src == iph->saddr) &&
 			    rth->rt_dst  == daddr &&
-			    rth->rt_src  == iph->saddr &&
 			    rth->fl.fl4_tos == tos &&
 			    rth->fl.iif == 0 &&
 			    !(dst_metric_locked(&rth->u.dst, RTAX_MTU))) {

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

end of thread, other threads:[~2003-12-10 23:15 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-01 20:16 [ROUTE] PMTU only works on half the time Herbert Xu
2003-12-01 20:47 ` Herbert Xu
2003-12-01 21:51   ` David S. Miller
2003-12-01 22:05     ` Herbert Xu
2003-12-01 22:21       ` David S. Miller
2003-12-01 23:22         ` David S. Miller
2003-12-02 10:10           ` Herbert Xu
2003-12-02 10:27             ` David S. Miller
2003-12-02 10:33               ` Herbert Xu
2003-12-01 23:30   ` Julian Anastasov
2003-12-01 23:50     ` David S. Miller
2003-12-02  0:04       ` Julian Anastasov
2003-12-02  0:07       ` Julian Anastasov
2003-12-02  0:08         ` David S. Miller
2003-12-02  1:53       ` Julian Anastasov
2003-12-02 23:40       ` Julian Anastasov
2003-12-03  0:07         ` David S. Miller
2003-12-03  0:39         ` David S. Miller
2003-12-03  1:43           ` Julian Anastasov
2003-12-03 22:03           ` Julian Anastasov
2003-12-05 20:43             ` David S. Miller
2003-12-06  7:52               ` Julian Anastasov
2003-12-10 23:15                 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).