From: Horms <horms@verge.net.au>
To: netdev@vger.kernel.org
Cc: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>,
Julian Anastasov <ja@ssi.bg>,
Wensong Zhang <wensong@linux-vs.org>,
Joseph Mack NA3T <jmack@wm7d.net>,
Roberto Nibali <ratz@drugphish.ch>
Subject: [PATCH] LVS: Send ICMP unreachable responses to end-users when real-servers are removed
Date: Sun, 11 Feb 2007 12:04:43 +0900 [thread overview]
Message-ID: <20070211030441.GB3383@verge.net.au> (raw)
Hi,
this is a small patch by Janusz Krzysztofik to ip_route_output_slow()
that allows VIP-less LVS linux director to generate packets originating
>From VIP if sysctl_ip_nonlocal_bind is set.
In a nutshell, the intention is for an LVS linux director to be able
to send ICMP unreachable responses to end-users when real-servers are
removed.
http://archive.linuxvirtualserver.org/html/lvs-users/2007-01/msg00106.html
I'm not really sure about the correctness of this approach,
so I am sending it here to netdev for review
Cc: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Signed-off-by: Simon Horman <horms@verge.net.au>
Index: net-2.6/net/ipv4/route.c
===================================================================
--- net-2.6.orig/net/ipv4/route.c 2007-02-11 11:46:08.000000000 +0900
+++ net-2.6/net/ipv4/route.c 2007-02-11 11:46:23.000000000 +0900
@@ -2397,7 +2397,7 @@
/* 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.
@@ -2408,7 +2408,7 @@
of another iface. --ANK
*/
- if (oldflp->oif == 0
+ if (dev_out && oldflp->oif == 0
&& (MULTICAST(oldflp->fl4_dst) || oldflp->fl4_dst == htonl(0xFFFFFFFF))) {
/* Special hack: user can direct multicasts
and limited broadcast via necessary interface
next reply other threads:[~2007-02-11 3:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-11 3:04 Horms [this message]
2007-03-06 4:45 ` [PATCH] LVS: Send ICMP unreachable responses to end-users when real-servers are removed David Miller
2007-03-27 1:04 ` David Miller
2007-03-27 10:53 ` Janusz Krzysztofik
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=20070211030441.GB3383@verge.net.au \
--to=horms@verge.net.au \
--cc=ja@ssi.bg \
--cc=jkrzyszt@tis.icnet.pl \
--cc=jmack@wm7d.net \
--cc=netdev@vger.kernel.org \
--cc=ratz@drugphish.ch \
--cc=wensong@linux-vs.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 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.