LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Director not sending icmp unreachable to expired clients

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Director not sending icmp unreachable to expired clients
From: Janusz Krzysztofik <jkrzyszt@xxxxxxxxxxxx>
Date: Sun, 28 Jan 2007 14:26:17 +0100
Dnia środa, 24 stycznia 2007 23:53, Joseph Mack NA3T napisał:
> On Wed, 24 Jan 2007, Graeme Fowler wrote:
> > On 24/01/2007 14:10, Janusz Krzysztofik wrote:
> >> Sorry, forgot to attach the patch.
> >
> > The list MLM doesn't send attachments through, I'm afraid. You'll either
> > have to put the patch in the body of a message, or (if it's way too long)
> > put it up on the web and tell us where it is.
>
> I got it, 835bytes. If this isn't the correct size can you
> send it off-list to Horms, Julian and myself.

Yes, it is correct. For others interested, here it is inline:

-----------------------------------
--- linux-source-2.6.18/net/ipv4/route.c        2006-09-20 05:42:06.000000000 
+0200
+++ linux-source-2.6.18-3-e49_7.200701181826/net/ipv4/route.c   2007-01-23 
13:21:54.000000000 +0100
@@ -2405,7 +2405,7 @@ static int ip_route_output_slow(struct r
 
                /* It is equivalent to inet_addr_type(saddr) == RTN_LOCAL */
                dev_out = ip_dev_find(oldflp->fl4_src);
-               if (dev_out == NULL)
+               if ((dev_out == NULL) && !(sysctl_ip_nonlocal_bind))
                        goto out;
 
                /* I removed check for oif == dev_out->oif here.
@@ -2416,7 +2416,7 @@ static int ip_route_output_slow(struct r
                      of another iface. --ANK
                 */
 
-               if (oldflp->oif == 0
+               if (dev_out && oldflp->oif == 0
                    && (MULTICAST(oldflp->fl4_dst) || oldflp->fl4_dst == 
0xFFFFFFFF)) {
                        /* Special hack: user can direct multicasts
                           and limited broadcast via necessary interface
---------------------------------------

and the URL: 
http://www.icnet.pl/download/ip_route_output-ip_nonlocal_bind.patch

Janusz

<Prev in Thread] Current Thread [Next in Thread>